Skip to content

Structure of PartImageNet dataset #10

Description

@HashmatShadab

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions