Skip to content

Downloading data twice with download=True set to Places365() should not get error like MNIST() #8740

@hyperkai

Description

@hyperkai

🚀 The feature

Downloading data twice with download=True set to Places365() gets the error below:

from torchvision import datasets

train_data = datasets.Places365(
    root="data",
    split="train-standard",
    download=True # Here
)

RuntimeError: The directory data\data_large_standard already exists. If you want to re-download or re-extract the images, delete the directory.

Motivation, pitch

So, downloading data twice with download=True set to Places365() should not get the error like when downloading data twice with download=True set to MNIST() doesn't get error as shown below:

from torchvision import datasets

train_data = datasets.MNIST(
    root="data",
    train=True,
    download=True # Here
) # No error

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions