Skip to content

Optional Argument to the Image folder class's constructor to accept specific sub-dirs to load data from. #3723

Closed
@Aradhya-Tripathi

Description

@Aradhya-Tripathi

🚀 Feature
Torchvision's Imagefolder class Takes in root as an argument, I want to add an additional argument that takes in sub-directories within root to load data only from those folders.

Motivation
While working with large datasets and a messy folder structure I would prefer to mention the folder names in the base directory that I load my data from, this saves time and a don't have to constantly keep arranging my folders.

Pitch
An optional argument that the Image folder class's constructor takes this argument is an iterable,
The ImageFolder class loads data only from the folders mentioned in the iterable.

Additional context
Thanks

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