bonn-activity-maps / bam_annotation_tool

Bonn Activity Maps annotation tool
4 stars 1 forks source link

Export: Annotations refering to image_ids which are not in the image list #368

Closed dari1495 closed 3 years ago

dari1495 commented 4 years ago

The frame ids these annotations refer to are not available in the dataset at all (there is no corresponding jpg file!). As the respective annotation has a bounding box, a track id and a person id I'm very afraid that there is a crucial bug in the backend as someone was able to annotate a frame in the tool which is not existing at all.

dari1495 commented 4 years ago

For sequence 017121_mpii_train, we have an annotation with id 10171210012100 which is referring to image_id 101712100121. Track id: 100, person_id: 21510

This particular sequence only has images up to frame 000103

dari1495 commented 4 years ago

there are also annotations referring to frames 951.jpg

For example

{'id': 10171210093100, 'image_id': 101712100931, 'track_id': 105, 'category_id': 1, 'scores': [], 'person_id': 21515, 'bbox_head': [], 'bbox': [981.1430224130241, 372.1229868228404, 135.8786797502229, 191.85944363103954], 'keypoints': []}

It contains the annotation mentioned above and I'm wondering where these annotations come frome. The referenced image it refers to a frame 931 I also checked in my code. It only happens for this particular sequence This only happens at this particular sequence, but not only for a single annotation but at least 15.

dari1495 commented 4 years ago

000003_bonn_train.json 000029_bonn_train.json 000010_bonn_train.json 000001_bonn_train.json 000036_bonn_train.json 000027_bonn_train.json 000023_bonn_train.json 000017_bonn_train.json 000026_bonn_train.json 000022_bonn_train.json 000002_bonn_train.json 000028_bonn_train.json 000015_bonn_train.json 017121_mpii_train.json

the 'id' in file['images'] is not matching 'image_id' in file['annotations']

dari1495 commented 3 years ago

Will be fixed in #387

anDoer commented 3 years ago

There are still annotations which refer to non-existing image ids. Here is an example annotation referring to a non existing image:

`{'track_id': 105, 'bbox': [976.5756718331846, 364.7437774524158, 138.16235504014287, 199.23865300146412], 'person_id': 21515, 'id': 10171210094100,

'bbox_head': [], 'scores': [], 'category_id': 1, 'keypoints': [], 'image_id': 101712100941}`

dari1495 commented 3 years ago

It was an old file from a previous export, closing again