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

No such file or directory: 'CIFAR-FS/train/' #1

Open
ry-jojo opened this issue Apr 12, 2023 · 0 comments
Open

No such file or directory: 'CIFAR-FS/train/' #1

ry-jojo opened this issue Apr 12, 2023 · 0 comments

Comments

@ry-jojo
Copy link

ry-jojo commented Apr 12, 2023

Hi there,
Thanks for sharing the codebase of such an awesome paper.
I am facing with an dataset-related error as follows when running ./scripts/pretrain_teacher.sh:

File "code/pretrain_teacher.py", line 211, in main
dataloader, num_classes = load_data(root=args.dataset, batch_size=batch_size)
File "code/pretrain_teacher.py", line 38, in load_data
trainset = torchvision.datasets.ImageFolder(f'{root}/train/', transform=transform) ## Training Datasets
"No such file or directory: 'CIFAR-FS/train/' "

My CIFAR-FS folder does not have the subfolder: train after running prepare.py.
image

Could you please give some suggestions? Thanks in advance.

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

1 participant