jspan / PHYSICS_SR

This repository is an official PyTorch implementation of the paper "Image Formation Model Guided Deep Image Super-Resolution" from AAAI 2020.
28 stars 1 forks source link

Training problem ? #2

Closed yeyewen closed 4 years ago

yeyewen commented 4 years ago

@jspan I placed the data as you mentioned, But image I changed the directory as the error guidance.Then image I download the model that you trained cd code python main.py --dir_data <your root> --data_test DIV2K --model physics_sr --scale 2 --save physics_sr_x2 --save_results image I think your readme of this code providing a test code, How do I train your model?

jspan commented 4 years ago

your trainset should place data like this: image and then modify the command with --dir data , not --data_test it is different with the testset, so you have the erro: No Such file or directory

yeyewen commented 4 years ago

@jspan I am sure that the data were placed as you said。 this is my command. But it still go to evaultion without training. python main.py --dir_data ../datasets/DIV2Kself --data_test Set5 --model physics_sr --scale 2 --save physics_sr_x2 --save_results image

image and my another colleague also got the same problem. Thanks!

yeyewen commented 4 years ago

@jspan the main.py set test_only=True , I set test_only=False . It worked