Skip to content

Fix issue with torchvision's ImageNet #1414

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

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

dedeswim
Copy link

When instantiating torchvision's ImageNet or ImageFolder, the download argument is passed, even if these two classes do not take this argument.

This PR removes the argument from the torch_kwargs dict before the classes are isntantiated.

@dedeswim dedeswim changed the title Fix issue with torchvision's ImageNet Fix issue with torchvision's ImageNet Aug 17, 2022
@dedeswim dedeswim changed the title Fix issue with torchvision's ImageNet Fix issue with torchvision's ImageNet Aug 17, 2022
@rwightman rwightman merged commit b4ea69c into huggingface:bits_and_tpu Oct 14, 2022
@dedeswim dedeswim deleted the bits_and_tpu branch October 15, 2022 12:53
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

Successfully merging this pull request may close these issues.

2 participants