Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesome AI upscaler #17

Open
iG8R opened this issue Aug 2, 2024 · 19 comments
Open

Awesome AI upscaler #17

iG8R opened this issue Aug 2, 2024 · 19 comments

Comments

@iG8R
Copy link

iG8R commented Aug 2, 2024

Just found a mind-blowing AI upscaler - https://huggingface.co/spaces/gokaygokay/AuraSR-v2.
It has even a pytorch version - https://github.com/lucidrains/gigagan-pytorch

Examples.
https://senkuro.com/manga/re-monster/chapters/119429828913939988/pages/4

Original image:
ReMonster-ch100p4-senkuro

Colorized image without upscaling:
ReMonster-ch100p4-senkuro

Upscaled with RealESRGAN_x4plus_anime_6B:
ReMonster-ch100p4-senkuro-RealESRGAN-4x

Upscaled with AuraSR-v2:
ReMonster-ch100p4-senkuro-Aura-v2

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 2, 2024

Seems good for text and doesn't remove artifacts

ERS:
image

ASR:
image

I'll test it in a few hrs.

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

Almost exactly like in the original image:
image

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 2, 2024

ESRGAN (Current) (2 seconds):
download (3)

GigaGAN x4 (AuraSR-v2) (40 seconds) (The space uses this):
download (2)

GigaGAN x4 Overlapped (AuraSR-v2) (80 seconds):
download (1)

The AuraSR is for generic use-case, so it's not only larger by x130 times than ESR, but also takes a long time for the upscale.
I don't recommend using it but if you want:
Download https://huggingface.co/fal/AuraSR-v2/blob/main/model.ckpt, rename it as GigaGAN.ckpt and save it in networks folder.
Then run app-stream.py python app-stream.py --no-ssl --upscaler_type=GigaGAN --upscaler_path=networks/GigaGAN.ckpt
Also compare the output with this: https://huggingface.co/spaces/gokaygokay/AuraSR-v2, since this space is not loading for me, and I modified the source code a bit.

PS:
download (4)

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

Thank you very much!
image

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

BTW, https://mangadex.org/chapter/d72a3eb8-2b20-4c39-a46f-d282eb05e64f/2 doesn't get colorized.

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 2, 2024

Oh, just 4s? Great! Must be my GPU then.

Fixed. Does the MC-FJ colorize this?

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

Oh, MC-FJ also doesn't colorize it...

image

Is there a way to forcefully colorize an image, and also re-colorize it, when sometimes MC colorizes placeholders?

https://senkuro.com/manga/zettai-ni-damage-wo-ukenai-skill-wo-moratta-node-boukensha-toshite-musou-shitemiru/chapters/136754949798249996/pages/1

MangaColorizer-placeholder-colorization-Video_2024-08-02_23-16-13.webm

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

Oh, just 4s? Great! Must be my GPU then.

Although, AuraSR-vs size is 2.29GB, but the amount of VRAM it uses is about 7.2GB.

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 2, 2024

when sometimes MC colorizes placeholders?

Oh I forgot about caches. It caches the wrong image. Should work when caching is off. Will fix.

@iG8R
Copy link
Author

iG8R commented Aug 2, 2024

However, without caching, the load on the system increases, as it has to colorize and upscale again.

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 3, 2024

Fixed. (Needs some more testing though)

@iG8R
Copy link
Author

iG8R commented Aug 3, 2024

Thanks a lot!
But, at the moment, when MC encounters placeholders, it starts processing the image, that has the placeholder first, eternally, as it can be seen from the server log and the image from page 7 as an example.

MangaColorizer-placeholder-colorizition-02-Video_2024-08-03_09-33-33.webm

image

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 3, 2024

Weird, this shouldn't happen.

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 3, 2024

Oh src can change anyways, previous bad fix reverted. Alternate temp fix pushed.

@iG8R
Copy link
Author

iG8R commented Aug 3, 2024

Thank you so much!
Now there are no issues with placeholders, but the issue regarding the "Show Original" option occurred:

MangaColorizer-show-original-issue-Video_2024-08-03_18-12-47.mp4

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 4, 2024

I'm unable to reproduce it. Is it always happening? Can you send me both the logs?

@iG8R
Copy link
Author

iG8R commented Aug 4, 2024

Thank you for your efforts!

Here's the entire process, which is why the screencast turned out a bit long and I had to split it into several parts to meet the size limitations (10 MB) on Github.
Please pay attention to the first pages of chapters 1 and 1.5 (they will appear to be exactly the same at the end of the colorization).

Part1

MangaColorizer-show-original-double-colorized-Video_2024-08-04_18-40-43_part1.mp4

Part 2

MangaColorizer-show-original-double-colorized-Video_2024-08-04_18-40-43_part2.mp4

Part 3

MangaColorizer-show-original-double-colorized-Video_2024-08-04_18-40-43_part3.mp4

Part 4

MangaColorizer-show-original-double-colorized-Video_2024-08-04_18-40-43_part4.mp4

Part 5

MangaColorizer-show-original-1ch-1.5ch-the-same-1st-page-Video_2024-08-04_18-46-21_part1.mp4

Part 6

MangaColorizer-show-original-1ch-1.5ch-the-same-1st-page-Video_2024-08-04_18-46-21_part2.mp4

Logs:

MangaColorizer-server-log.txt

Screenshot, big screenshot, really big screenshot

image

@BinitDOX
Copy link
Owner

BinitDOX commented Aug 5, 2024

This only occurs with Senkuro right? They load the next chapter if you scroll to the bottom and pages start recoloring due to reuse of page names. But the original still doesn't get affected for me.

@iG8R
Copy link
Author

iG8R commented Aug 5, 2024

Yes, I only noticed it on senkuro.com. Though, I haven't been watching much manga lately, mostly just manhua.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants