nagadomi / nunif

Misc; latest version of waifu2x; 2D video to stereo 3D video conversion
MIT License
1.42k stars 134 forks source link

Why doesn't waifu reduce the noise for this type of image? #165

Closed shuttittuppitt closed 3 months ago

shuttittuppitt commented 3 months ago

I have several images that have a specific type of noise in them, & since waifu has a noise reducing function, I tried using waifu to reduce the noise of one of the images. (I only tried noise reduction on it, not size increasing.) The problem is that even waifu's maximum noise reduction level doesn't seem to reduce the noise at all. I'm including the image that I tested it with as an attachment. Does waifu not consider the type of noise that this kind of image has to meet it's definition of noise?

b-04

nagadomi commented 3 months ago

Yes, it is not noise. It's paper or cloth texture. Art model reduces JPEG noise only. Art/Scan model support paper texture removal. But it does not expect watercolor like input. But, the textures in that image have a larger structure than expected.

shuttittuppitt commented 3 months ago

Yeah, the images that I have (that have that type of texture) are scans of physical book pages that I scanned in order to make digital copies of them. (Oddly, the structure of the (physical) textures is tight enough that I didn't notice that they were using a "printed dithering texture" (although I should've expected that) until I scanned them & then saw the texturing in the digital scans. I then checked the physical pages with a magnifying app, & confirmed that they do use "printed dithering textures", so it's not caused by the scanner.)

Anyway, waifu's art/scan mode does do what I was trying to do, so thanks for bringing that mode to my attention. (I always use "swin_unet/photo" with denoise set to "low").

nagadomi commented 3 months ago

These days, 2D artists sometimes intentionally use perlin noise, for example. I do not want to remove textures, gradients, blurs, etc. that the artist intended. So, in Art model for digital illustrations, I basically consider JPEG compression noise is the only noise that should be removed. However, printed art and further scanning of it can produce various noises due to various factors such as paper, scanner, and camera. Art/Scan model aims to target such input.