sefibk / KernelGAN

Other
337 stars 77 forks source link

A question about "--real" #58

Closed Vonuo closed 3 years ago

Vonuo commented 3 years ago

Hi, thank you for your Code sharing. I'm confused about "--real : Real-image configuration (effects only the ZSSR)" in usage, is it mean ZSSR in this mode is trained by real data?

sefibk commented 3 years ago

ZSSR trains only on the single test image. The real flags inform ZSSR that this test image is real (i.e. has noise) and therefore adds noise when downscaling the image. To conclude it effects only ZSSR

Vonuo commented 3 years ago

ZSSR trains only on the single test image. The real flags inform ZSSR that this test image is real (i.e. has noise) and therefore adds noise when downscaling the image. To conclude it effects only ZSSR

So, "--real" correspond to "Ground-truth kernel + ZSSR" that listed in table 1(yellow marked)? img

sefibk commented 3 years ago

No --real is a flag that modifies ZSSR for real images. In synthetic images (as opposed to real) images are "clean" and there is no noise. What ZSSR does when there is noise (i.e. the flag --real is true) is it adds noise to the downscaled version of the input image.

Vonuo commented 3 years ago

No --real is a flag that modifies ZSSR for real images. In synthetic images (as opposed to real) images are "clean" and there is no noise. What ZSSR does when there is noise (i.e. the flag --real is true) is it adds noise to the downscaled version of the input image.

Ok, I understand. Thank you!