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

How to distinguish which dataset the image belongs to in unikpt annotation #14

Open
xuewenyuan opened this issue Feb 4, 2024 · 1 comment

Comments

@xuewenyuan
Copy link

unikpt is a collection of multiple datasets, but except for coco, other images seem to have no way to distinguish which dataset they belong to from the annotations, such as the following example:
COCO can be identified by "coco_url".

print(json['images'][0])
{'license': 3, 'file_name': '000000391895.jpg', 'coco_url': 'http://images.cocodataset.org/train2017/000000391895.jpg', 'height': 360, 'width': 640, 'date_captured': '2013-11-14 11:18:45', 'flickr_url': 'http://farm9.staticflickr.com/8186/8119368305_4e622c8349_z.jpg', 'id': 391895}

others:

print(p_json['images'][120050])
{'flickr_url': 'unknown', 'coco_url': 'unknown', 'file_name': 'car_fifth2/images_jpg/2_07961.jpg', 'id': 200207961, 'license': 1, 'date_captured': 'unknown', 'width': 1920, 'height': 1080}
print(json['images'][150050])
{'coco_url': '', 'date_captured': '', 'file_name': '017071.jpg', 'flickr_url': '', 'id': 17071, 'license': 0, 'width': 752, 'height': 752}

@lzzzbbbbb
Copy link

Yes, I have also discovered this problem. Only some image names with data set names can be found, and others are difficult to find the original data sets, such as the following ones.
{"license": 1, "id": 58486, "file_name": "000000058486.jpg", "width": 1024, "height": 683, "background": 5}
{"id": 607, "file_name": "607.jpg", "height": 160, "width": 160}

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

2 participants