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

FileNotFoundError: [Errno 2] No such file or directory: 'D:/SR_datasets\\div2k_cache\\div2k_hr\\rgb\\DIV2K_train_HR\\0001.npy' #14

Open
mkllkmf opened this issue Sep 21, 2022 · 1 comment

Comments

@mkllkmf
Copy link

mkllkmf commented Sep 21, 2022

div2k_cache是干嘛的

@xavysp
Copy link

xavysp commented Sep 30, 2022

Hi a replaced in div2k.py

# hr_npy_name = self.hr_filenames[i].split('/' or '\\')[-1].replace('.png', '.npy') # before

hr_npy_name = os.path.basename(self.hr_filenames[i]).replace('.png', '.npy')

And also here:

# lr_npy_name = self.lr_filenames[i].split('/')[-1].replace('.png', '.npy') # before
lr_npy_name = os.path.basename(self.hr_filenames[i]).replace('.png', 'x{}.npy'.format(self.scale))

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

2 participants