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

Weird artifacts when testing on Kodak dataset #13

Open
amnesiack opened this issue Sep 9, 2020 · 6 comments
Open

Weird artifacts when testing on Kodak dataset #13

amnesiack opened this issue Sep 9, 2020 · 6 comments

Comments

@amnesiack
Copy link

Thanks for sharing the great work!

I had a test of IRN_x2 on the Kodak dataset (http://r0k.us/graphics/kodak/), which often adoped in multiple image-related tasks.
I saw some weird green shadow-like artifacts in many of the reconstructed images. both in LR and the reconstructed ones (like images shown below). Since the Kodak is also natural image dataset, I don't expect it has special characteristics or distributions compared to set5, set14, or DIV2K, which will lead to these artifacts. Did I ignore something or make something wrong? Do you observe similar artifacts in your experiments?

kodim05_LR
kodim05
kodim23_LR
kodim23

@pkuxmq
Copy link
Owner

pkuxmq commented Sep 10, 2020

Hi, thanks for pointing out it. I have verified it and it is interesting that IRN_x4 does not have such artifacts on Kodak, but IRN_x2 has artifacts on 12 images (half of Kodak). Besides, I tested another IRN_x2 model (I finetuned the pretrained model with L1 loss for LR guidance and add random noise on LR images before upscale during training), the artifacts are largely reduced but about 5 images still have few artifacts. I did not observe such artifacts on Set5, Set14, B100, Urban100, and DIV2K for all scales. It may be related with network architecture, training methods, and training dataset. We will further explore it.

@charliewang789
Copy link

I also see similar artifact on many images even with DiV2k. sounds like author did not see it?

@pkuxmq
Copy link
Owner

pkuxmq commented Jan 12, 2021

Hi @charliewang789 , what kind of artifact do you observe and what's the test setting? We do not observe artifacts on val_DIV2K, Could you please provide detailed information, e.g. which image in DIV2K and which scale? Thanks!

@charliewang789
Copy link

not all epoc, only certain time, it appears. 2x scaling, example below.
0894x2_forwLR_55000

@steven8274
Copy link

steven8274 commented Apr 8, 2022

Yeah, I met this problem also.When I use a screenshot image as HR input.The output LR and SR image all have added green
and purple color like this:
SR:
screen_mac_3
LR:
screen_mac_3_LR
Ground truth HR image:
screen_mac_3_GT

I trained the model with IRN_x4 mode and ran 500000 iterators as default config.But the problem is gone if I use the model after 300000 iterators.

@pkuxmq
Copy link
Owner

pkuxmq commented Apr 11, 2022

The artifacts are likely to be caused by unrobustness of LR generation for some unseen distributions. One solution is also to finetune models on several samples of the target distribution. For example, if we finetune the model for several epochs on Kodak, the artifacts on Kodak with pretrained models can be removed. Another method is to increase the loss weight for LR guidance during training. This may lead to a slight performance drop for HR reconstruction (around 0.1-0.2 dB if we increase the weight by 10 times), but the restriction for valid LR image is stronger. Also, there may be other methods to regularize the model from overfitting that require exploration.

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

4 participants