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

Structure of PartImageNet dataset #10

Open
HashmatShadab opened this issue Sep 17, 2023 · 0 comments
Open

Structure of PartImageNet dataset #10

HashmatShadab opened this issue Sep 17, 2023 · 0 comments

Comments

@HashmatShadab
Copy link

HashmatShadab commented Sep 17, 2023

I downloaded data PartImageNet_Seg, from https://github.com/tacju/partimagenet. After unzipping, the dataset structure is given below:
image

The link using gdwon doesn't download the dataset, it only downloads the json files for train, val and test.

So,

  1. mkdir JPEGImages
  2. mv train/* test/* val/* JPEGImages
    This will move all the images in the JPEGImages.

image

However, the below function in preparing dataset expects the data to have a subfolder in the JPEGImages:

def get_all_image_names(path):
    all_names = glob.glob(f"{path}/JPEGImages/*/*.JPEG")
    all_names = [name.split("/")[-1].split(".")[0] for name in all_names]
    return set(all_names)

Can you please provide more details regarding data preparation and let me know if I am making any mistake?

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