Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFound? #3

Open
ArtScanner opened this issue May 17, 2020 · 3 comments
Open

FileNotFound? #3

ArtScanner opened this issue May 17, 2020 · 3 comments

Comments

@ArtScanner
Copy link

File "C:\Users\The Computer\PycharmProjects\a-PyTorch-Tutorial-to-Super-Resolution-master\datasets.py", line 49, in init
with open(os.path.join(data_folder, self.test_data_name + '_test_images.json'), 'r') as j:
FileNotFoundError: [Errno 2] No such file or directory: './Set5_test_images.json'

@JauB1981
Copy link

I have the same issue :(
Some succeded to solve it ?
Thanks

@lucidBrot
Copy link

I am currently also trying to set this up. I'm not fully finished, but I think I can answer this issue.

Have a look at create_data_lists.py and set it up correctly with the path to the datasets that you will use. Then run python create_data_lists.py, from the folder where you want the json files to be generated.

Now that you have these json files, you see that they are called something_test_images.json. For running eval.py, you have to edit them in there as well.

I have not yet got it to work fully / tested it fully, but this is how I'm doing it:

create_data_lists.py:

from utils import create_data_lists

if __name__ == '__main__':
    create_data_lists(train_folders=[
                                    '/cluster/home/minker/mf6/train/'
                                    ],
                      test_folders=[
                                    '/cluster/home/minker/mf6/eval'
                                    ],
                      min_size=100,
                      output_folder='./')

eval.py (begin):

from datasets import SRDataset

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# Data
data_folder = "./"
test_data_names = ["eval"]

@ZhilingGuo
Copy link

from utils import create_data_lists

if name == 'main':
create_data_lists(train_folders=[
'/cluster/home/minker/mf6/train/'
],
test_folders=[
'/cluster/home/minker/mf6/eval'
],
min_size=100,
output_folder='./')

对应的test下,不应该是包括低分辩和高分辨两组图像吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants