icandle / CAMixerSR

CAMixerSR: Only Details Need More “Attention” (CVPR 2024)
https://arxiv.org/abs/2402.19289
Apache License 2.0
225 stars 13 forks source link

How to test with my own local imgs? #6

Closed ButoneDream closed 7 months ago

ButoneDream commented 7 months ago

when i try to modify the dataset path in the yml file i encountered this error : image could you help me ?

ButoneDream commented 7 months ago

sry the paired name is not as the same so the error happend

sahleywuyi commented 7 months ago

I also encountered this problem when reproducing the code. May I ask how did you solve this error? thank you !

ButoneDream commented 7 months ago

you just need to adjust the image file name and make sure they are as same in the two dir ( LR and HR) Hope this help for u!

sahleywuyi commented 7 months ago

Thank you for your reply. When I used set5 to test, I changed the image names of HR and LR to be the same as them. They can be tested normally, but the test index is very low, PSNR is only 9.7292,Have you ever encountered this problem? and how should I solve it? thank you very much! 屏幕截图 2024-04-07 111325 屏幕截图 2024-04-07 111247

icandle commented 7 months ago

You can check if the pre-trained model was properly loaded. The _pretrain_networkg: ~ #path to models in .yml should be replaced with your local path.