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

**VOCtrainval_25-May-2011.tar** downloaded with VOCSegmentation() and VOCDetection() is extracted to data/ as **TrainVal/VOCdevkit/VOC2011/** but not to data/VOCdevkit/ as **VOC2011/** #8773

Open
hyperkai opened this issue Dec 2, 2024 · 1 comment

Comments

@hyperkai
Copy link

hyperkai commented Dec 2, 2024

🐛 Describe the bug

VOCtrainval_25-May-2011.tar downloaded with VOCSegmentation() and VOCDetection() is extracted to data/ as TrainVal/VOCdevkit/VOC2011/ but not to data/VOCdevkit/ as VOC2011/ as shown below, then TrainVal/VOCdevkit/VOC2011 is loaded from data/. *Other zip files are properly extracted to and loaded from data/VOCdevkit/:

from torchvision import datasets

train_data = datasets.VOCSegmentation(
    root="data",
    year="2011",
    image_set="trainval",
    download=True,
)
from torchvision import datasets

train_data = datasets.VOCDetection(
    root="data",
    year="2011",
    image_set="trainval",
    download=True,
)
data
 |-VOCdevkit
 |  |-VOC2007
 |  |-VOC2008
 |  |-VOC2009
 |  |-VOC2010
 |  └-VOC2012
 └-TrainVal # Here
    └-VOCdevkit
       └-VOC2011

In addition, I moved VOC2011/ from data/TrainVal/VOCdevkit/ to data/VOCdevkit/, then it was not loaded:

data
 |-VOCdevkit
 |  |-VOC2007
 |  |-VOC2008
 |  |-VOC2009
 |  |-VOC2010
 |  |-VOC2011<---┐
 |  └-VOC2012    |
 └-TrainVal      |
    └-VOCdevkit  |
       └-       -┘

Versions

import torchvision

torchvision.__version__ # '0.20.1'
@NicolasHug
Copy link
Member

Hi @hyperkai ,

Sorry, I'm not sure I completely follow here. It's possible that different datasets download the data in different places (even in some unexpected cases).

Is anything broken, or is it just that you would have expected some files to be downloaded somewhere else?

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