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

Feature suggestion: Dither removal #66

Open
internetakias opened this issue Nov 21, 2015 · 4 comments
Open

Feature suggestion: Dither removal #66

internetakias opened this issue Nov 21, 2015 · 4 comments

Comments

@internetakias
Copy link

Hey, I'd like to suggest dither removal or undithering for waifu2x.
By the way, what prompted me to suggest this was the discovery that earlier versions of waifu2xcaffee, and I presume waifu2x were quite good at removing the dither from iDOLM@STER Cinderella Girls Starlight Stage cards using noise removal, but no so much anymore:
Original image:
bg_200065
2x Upscale w/ Level 2(High) Noise Removal using waifu2xcaffe 1.0.5:
bg_200065 noise_scale level2 x2 000000
2x Upscale w/ Level 2 Noise Removal using latest waifu2x (waifu2x caffe 1.0.7 gives similar results)
ee3d1cda-1b8f-4dee-cd2e-bf344c7ef859
Actually, one interesting thing to note is that Level 2 noise removal actually removes less dither now than Level 1:
f83df70d-b693-41e4-c119-e93a5789b270

@nagadomi
Copy link
Owner

It seems that dither is not from JPEG compression. In latest filters, It is a detail.
However, I know that dither removal is very useful in this area.
I will add the level3 noise reduction filter that does not retain a detail, removing JPEG artifact and dithering noise.

You can get old filters at http://www.udp.jp/misc/waifu2x_models/v0.9/anime_style_art_rgb/ .

@internetakias
Copy link
Author

Actually, would it be possible for dither removal to be separate from artifact removal, or would that not make that much of a difference?

@nagadomi
Copy link
Owner

Maybe it is possible. Of course, it has its limits.
I am planning to add -undither option.

@internetakias
Copy link
Author

Thanks a lot, nagadomi!
Have some Starlight Stage card art to test the -undither option on https://icebluenoshunkan.kirara.ca/temp/ss/card_bg_png/200.html

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

No branches or pull requests

2 participants