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

VIPeR数据集没有val文件 #341

Open
jxVoidreaver opened this issue Nov 4, 2022 · 1 comment
Open

VIPeR数据集没有val文件 #341

jxVoidreaver opened this issue Nov 4, 2022 · 1 comment

Comments

@jxVoidreaver
Copy link

jxVoidreaver commented Nov 4, 2022

Traceback (most recent call last):
File "train.py", line 168, in
data_transforms['val'])
File "/home/adminis/anaconda3/envs/python3.6/lib/python3.6/site-packages/torchvision/datasets/folder.py", line 313, in init
is_valid_file=is_valid_file)
File "/home/adminis/anaconda3/envs/python3.6/lib/python3.6/site-packages/torchvision/datasets/folder.py", line 145, in init
classes, class_to_idx = self.find_classes(self.root)
File "/home/adminis/anaconda3/envs/python3.6/lib/python3.6/site-packages/torchvision/datasets/folder.py", line 221, in find_classes
return find_classes(directory)
File "/home/adminis/anaconda3/envs/python3.6/lib/python3.6/site-packages/torchvision/datasets/folder.py", line 40, in find_classes
classes = sorted(entry.name for entry in os.scandir(directory) if entry.is_dir())
FileNotFoundError: [Errno 2] No such file or directory: '../VIPeR/pytorch/val'

@layumi
Copy link
Owner

layumi commented Dec 20, 2022

Hi @jxVoidreaver
Sorry for the late response.
VIPeR do not have a val set. You could change the code to skip the validation, and directly use test set to evaluate.

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