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

ImageNet1K file structure #106

Open
bryanbocao opened this issue Jul 18, 2024 · 2 comments
Open

ImageNet1K file structure #106

bryanbocao opened this issue Jul 18, 2024 · 2 comments

Comments

@bryanbocao
Copy link

Vim# bash vim/scripts/pt-vim-t.sh
raise FileNotFoundError(f"Couldn't find any class folder in {directory}.")
FileNotFoundError: Couldn't find any class folder in <my_path_to>/imagenet/train.

My ImageNet1K follows this structure in https://mmclassification.readthedocs.io/en/latest/getting_started.html:

├── data
│   ├── imagenet
│   │   ├── meta
│   │   ├── train
│   │   ├── val

where all the train/val images are in the train and val folders, respectively. The labels are in a single file in the meta folder.

It seems that Vim assumes that ImageNet1K is organized the structure:

imagenet/
    train/
        cat/1.jpg
            /2.jpg
            ...
        dog/1.jpg
              /2.jpg
    val/
        cat/101.jpg
            /102.jpg
            ...
        dog/101.jpg
              /102.jpg
    ...

where a folder stores all images of a class while the folder's name is noted as the class name.

@HeisenbergDJ
Copy link

Hi, I have the same question. Did you solve it?

@XavierZXY
Copy link

I follow this, it's helpful.
https://huggingface.co/datasets/ILSVRC/imagenet-1k/discussions/17

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

3 participants