IceClear / StableSR

[IJCV2024] Exploiting Diffusion Prior for Real-World Image Super-Resolution
https://iceclear.github.io/projects/stablesr/
Other
2.11k stars 138 forks source link

The effect of using display pictures is very poor #125

Open learn01one opened 6 months ago

learn01one commented 6 months ago

The effect of using display pictures is very poor

截屏2024-03-27 19 19 48

Result picture

截屏2024-03-27 20 03 01

run command:

python scripts/sr_val_ddim_text_T_negativeprompt_canvas_tile.py \ --config configs/stableSRNew/v2-finetune_text_T_768v.yaml --ckpt ./models/stablesr_768v_000139.ckpt \ --vqgan_ckpt ./models/vqgan_cfw_00011.ckpt --init-img ./test --outdir ../OUT_PATH/ \ --ddim_steps 20 --dec_w 0.0 --colorfix_type wavelet --scale 7.0 \ --use_negative_prompt --upscale 4 --seed 42 --n_samples 1 --input_size 768 \ --tile_overlap 48 --ddim_eta 1.0

The experimental results show that only the image size has increased, but the quality is still very poor. Is there any problem with running the command?

IceClear commented 6 months ago

Hi. You are using a zoomed image, i.e., the LR image is already a 4x bicubic upsampled version of the original LR image. We guess that a too-large upsampling scale, i.e., 16x may lead to undesired results sometimes. This case is not very common and we did not do many tests on such cases. A possible reason can be the large gap between the training and inference.

IceClear commented 6 months ago

You may test more images using the original images here. If you are interested in finding the reasons, you can first try upsampling these images with 16x to see if such a case happens to most of the images. My current guess is that the upsampling scale is too large, not sure about it. I am busy recently and may have a test later.

IceClear commented 6 months ago

I tested on the original image using DDPM 50 steps and it works. I think DDIM 20 steps should work too. ADE_val_00000711

The original image for your reference: ADE_val_00000711

learn01one commented 5 months ago

Hi. You are using a zoomed image, i.e., the LR image is already a 4x bicubic upsampled version of the original LR image. We guess that a too-large upsampling scale, i.e., 16x may lead to undesired results sometimes. This case is not very common and we did not do many tests on such cases. A possible reason can be the large gap between the training and inference.

Thank you very much for your reply. I have tried other samples and it is indeed as you analyzed. By using the original image you provided, the effect is normal.