Datasets:
Tasks:
Object Detection
Formats:
text
Languages:
English
Size:
100K - 1M
ArXiv:
Tags:
Multi-object-tracking
License:
Update convert_to_coco.py
Browse files- convert_to_coco.py +2 -2
convert_to_coco.py
CHANGED
|
@@ -74,7 +74,7 @@ for seq in sorted(os.listdir(FRAMES_DIR)):
|
|
| 74 |
x, y, w, h = anns[i][2:6]
|
| 75 |
conf = anns[i][6]
|
| 76 |
class_id = int(anns[i][7])
|
| 77 |
-
visibility = anns[i][8]
|
| 78 |
|
| 79 |
ann_cnt += 1
|
| 80 |
if track_id != tid_last:
|
|
@@ -83,7 +83,7 @@ for seq in sorted(os.listdir(FRAMES_DIR)):
|
|
| 83 |
|
| 84 |
ann = {
|
| 85 |
"id": ann_cnt,
|
| 86 |
-
"category_id": class_id,
|
| 87 |
"image_id": image_cnt + frame_id,
|
| 88 |
"track_id": tid_curr,
|
| 89 |
"bbox": [float(x), float(y), float(w), float(h)],
|
|
|
|
| 74 |
x, y, w, h = anns[i][2:6]
|
| 75 |
conf = anns[i][6]
|
| 76 |
class_id = int(anns[i][7])
|
| 77 |
+
visibility = anns[i][8]
|
| 78 |
|
| 79 |
ann_cnt += 1
|
| 80 |
if track_id != tid_last:
|
|
|
|
| 83 |
|
| 84 |
ann = {
|
| 85 |
"id": ann_cnt,
|
| 86 |
+
"category_id": class_id,
|
| 87 |
"image_id": image_cnt + frame_id,
|
| 88 |
"track_id": tid_curr,
|
| 89 |
"bbox": [float(x), float(y), float(w), float(h)],
|