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

--dataset torch/CIFAR10 #3

Open
TalRub104 opened this issue Dec 7, 2024 · 0 comments
Open

--dataset torch/CIFAR10 #3

TalRub104 opened this issue Dec 7, 2024 · 0 comments

Comments

@TalRub104
Copy link

Hi,
After downloading the CIFAR-10 dataset using the following command:
python3 -c "from torchvision.datasets import CIFAR10; CIFAR10(CIFAR10, download=True)"

I attempted to run the following command to fine-tune on CIFAR-10:

python -m torch.distributed.launch --nproc_per_node=8 train.py CIFAR10 --dataset CIFAR10 --experiment vssm_tiny_v2_TRADE_none_reg --output output/TRADE/vssm_tiny_v2/none --model vssm_tiny_v2 --config configs/xcit-adv-training-cifar10.yaml --mean 0.4914 0.4822 0.4465 --std 0.2471 0.2435 0.2616 --normalize-model

However, I encountered the following error:
RuntimeError: Found 0 images in subfolders of CIFAR10. Supported image extensions are .png, .jpg, .jpeg

When I use the --dataset torch/CIFAR10 option instead, the script runs without any issues. Could you please clarify the following:

How can I make the --dataset CIFAR10 option work as expected?
If not, could you update the "XCiT-S12, XCiT-M12, and XCiT-L12 fine-tuning on CIFAR-10 and CIFAR-100" command?

Thanks!

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