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

Chongyangbai/kvpair #82

Merged
merged 25 commits into from
Aug 2, 2024
Merged

Chongyangbai/kvpair #82

merged 25 commits into from
Aug 2, 2024

Conversation

cy-bai
Copy link
Contributor

@cy-bai cy-bai commented Jul 18, 2024

Add key_value_pair dataset support.

Done in this PR:

  1. New dataset type: key_value_pair
  2. MultiImageLabelManifest, which binds a label and its image ids to the label manifest, so that multi-image annotation is supported
  3. MultiImageDatasetManifest which binds a list of ImageDataManifest as images and a list of MultiImageLabelManifest as annotations
  4. implement manifest adaptor from coco, manifest to coco, manifest merge for this dataset type
  5. Implement KVPairSchema and KVPairFieldSchema classes
    Implement KVPairDatasetManifest which inherits MultiImageDatasetManifest, and makes sure each label conforms the given schema
  6. Update docs
  7. check script for key_value_pair dataset

Todo:

  1. more operations on MultiImageDatasetManifest: spawn, sample

@cy-bai cy-bai marked this pull request as ready for review July 18, 2024 18:59
@pj-ms
Copy link
Collaborator

pj-ms commented Jul 22, 2024

Need documentation update at https://github.com/microsoft/vision-datasets/blob/main/COCO_DATA_FORMAT.md, if it is still coco

vision_datasets/common/constants.py Outdated Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
DATA_PREPARATION.md Outdated Show resolved Hide resolved
Copy link
Contributor

@juliagongms juliagongms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few more minor comments, but looks good otherwise - thanks for the changes!

Copy link
Contributor

@juliagongms juliagongms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Chongyang! Found one place where kv -> key_value might be good, but otherwise looks good to me!

@pj-ms
Copy link
Collaborator

pj-ms commented Jul 30, 2024

version bump

@pj-ms
Copy link
Collaborator

pj-ms commented Jul 30, 2024

probably better to remove your design doc link from the PR, as this is public repo

COCO_DATA_FORMAT.md Outdated Show resolved Hide resolved
COCO_DATA_FORMAT.md Outdated Show resolved Hide resolved
DATA_PREPARATION.md Outdated Show resolved Hide resolved
DATA_PREPARATION.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Show resolved Hide resolved
vision_datasets/common/data_manifest/data_manifest.py Outdated Show resolved Hide resolved
COCO_DATA_FORMAT.md Outdated Show resolved Hide resolved
COCO_DATA_FORMAT.md Outdated Show resolved Hide resolved
COCO_DATA_FORMAT.md Outdated Show resolved Hide resolved
DATA_PREPARATION.md Outdated Show resolved Hide resolved
tests/resources/util.py Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Outdated Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Show resolved Hide resolved
vision_datasets/key_value_pair/manifest.py Outdated Show resolved Hide resolved
DATA_PREPARATION.md Outdated Show resolved Hide resolved
…f KeyValuePairDatasetManifest, (3)bbox definition, (4) enum type
@pj-ms pj-ms merged commit f760dec into microsoft:main Aug 2, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants