EDSR-PyTorch icon indicating copy to clipboard operation
EDSR-PyTorch copied to clipboard

How to test? Please!!! I have got the pre-trained models, but i don't know the test commend。

Open Studyhao opened this issue 4 years ago • 8 comments

Studyhao avatar Feb 24 '21 03:02 Studyhao

hello, Have you learned about it? I got some mistakes about the testing, I used my own images, but the model outputs only artifacts.

Awenjie10 avatar Mar 23 '21 06:03 Awenjie10

Maybe I am too late but for anyone else, you need to add a few additional parameters and the function call should look like this:

python main.py --data_test Demo --scale 4 --pre_train ../models/EDSR_x4.pt --n_resblocks 32 --n_feats 256 --res_scale 0.1 --test_only --save_results

This is after creating a folder containing your test images called 'test' in same working directory where you have other folders like src, models, etc.

mylifeasazucchini avatar Apr 15 '21 16:04 mylifeasazucchini

Thank you very much! It's works for me.

haikunzhang95 avatar Sep 13 '21 03:09 haikunzhang95

Why the --save_results come out error? 捕获1

ymtupup avatar Sep 29 '21 02:09 ymtupup

I'm getting same error as above for --save_result. any recommendations? @mylifeasazucchini

update - https://github.com/sanghyun-son/EDSR-PyTorch/issues/320#issuecomment-936413370

Major update - working now. I had missed adding --n_resblocks 32 and --res_scale 0. now its working as expected. thank you!

ambikaverma avatar Oct 06 '21 14:10 ambikaverma

n_resblocks 32 --n_feats 256 --res_scale 0.1 which i use" n_resblocks 32 --n_feats 256 --res_scale 0.1"it is worse than that which i do not use the“ n_resblocks 32 --n_feats 256 --res_scale 0.1”, when i test x3_moedl.

Ralapfranco avatar Jul 29 '22 08:07 Ralapfranco

hello, Have you learned about it? I got some mistakes about the testing, I used my own images, but the model outputs only artifacts.

Excuse me, have you solved it? When I test with my own test set, I can only output super-resolution images, and PSNR = 0?

liu1216 avatar Aug 30 '22 08:08 liu1216

sorry! i'm too late. You should debug it! i guess that the module can't get the test path.

At 2022-08-30 16:39:18, "liu1216" @.***> wrote:

hello, Have you learned about it? I got some mistakes about the testing, I used my own images, but the model outputs only artifacts.

Excuse me, have you solved it? When I test with my own test set, I can only output super-resolution images, and PSNR = 0?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Ralapfranco avatar Oct 11 '22 07:10 Ralapfranco