YapengTian / TDAN-VSR-CVPR-2020

TDAN: Temporally-Deformable Alignment Network for Video Super-Resolution, CVPR 2020
MIT License
400 stars 62 forks source link

eval.py generates plain black images #11

Closed YoungJoongUNC closed 4 years ago

YoungJoongUNC commented 4 years ago

Hello, thank you for sharing your great work! I have a question about eval.py.

I used vid4 test dataset calendar images for evaluation. I found that eval.py generates plain black images with x4 sizes.

I tried to save images before applying converting to uint8 (eval.py last line), and it somehow generates calendar images but with wrong colors.

May I ask how could I fix this?

Thank you.

YapengTian commented 4 years ago

Hi YoungJoong,

Thanks for your interest. I just did a test using video frames from the calendar set. It works well. I have uploaded the test images into the repo in the data/Vid4 folder (PLEASE change test data path accordingly when you do testing) and the results in the res folder. Could you please try the uploaded frames? I generated testing images using a script similar to https://github.com/yulunzhang/RDN/blob/master/RDN_IR/RDN_TestCode/RDN_SR_RGB/Prepare_TestData_HR_LR.m.

If there are still some issues, please let me know.

Best, Yapeng

YoungJoongUNC commented 4 years ago

Thank you for your fast reply! I have tried change test data path to "data\Vid4" and now I got this error.

Traceback (most recent call last): File "eval.py", line 101, in image = io.imread(os.path.join(LR, ims[0])) "Could not find a format to read the specified file in %s mode" % modename ValueError: Could not find a format to read the specified file in single-image mode

May I ask how could I fix this? I have found that when I set the test data path as "data", the network generates results well on SPMCs.

YapengTian commented 4 years ago

Could you remove ".DS_Store" in the Vid4/calendar and try the code again?

YoungJoongUNC commented 4 years ago

It works! Thank you a lot for helping me :)