Converted tuple to list for list of labels
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -260,13 +260,13 @@ def load_scenenet_val(photo_paths: Sequence[Sequence[str]],
|
|||||||
labels = []
|
labels = []
|
||||||
for instance in frame_instances:
|
for instance in frame_instances:
|
||||||
bbox = instance['bbox']
|
bbox = instance['bbox']
|
||||||
labels.append((
|
labels.append([
|
||||||
cats_to_classes[instance['coco_id']],
|
cats_to_classes[instance['coco_id']],
|
||||||
bbox[0],
|
bbox[0],
|
||||||
bbox[1],
|
bbox[1],
|
||||||
bbox[2],
|
bbox[2],
|
||||||
bbox[3]
|
bbox[3]
|
||||||
))
|
])
|
||||||
|
|
||||||
if not labels:
|
if not labels:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user