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

After downloading and extracting "train-challenge" dataset with Places365(), it gets error #8822

Open
hyperkai opened this issue Dec 21, 2024 · 0 comments

Comments

@hyperkai
Copy link

🐛 Describe the bug

After downloading and extracting "train-challenge" dataset with Places365(), it gets the error as shown below:

from torchvision.datasets import Places365

trainchal_large_data = Places365(
    root="/data",
    split="train-challenge",
    small=False,
    download=True
)

trainchal_large_data[0] # Error

FileNotFoundError: [Errno 2] No such file or directory: '.../data\data_large_challenge\a\airfield\00000001.jpg'

So, I renamed data_large folder to data_large_challenge folder, then it works properly as shown below:

from torchvision.datasets import Places365

trainchal_large_data = Places365(
    root="/data",
    split="train-challenge",
    small=False,
    download=False
)

trainchal_large_data[0]
# (<PIL.Image.Image image mode=RGB size=683x512>, 0)

It seems like when Places365() extracts "train-challenge" dataset, the folder name is set to data_large but not to data_large_challenge.

Versions

import torchvision

torchvision.__version__ # '0.20.1'
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