-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Thanks for your great job. And here I want to report some bugs and I have remedied them.
- In the
obj, sub = rel['object']['name'], rel['subject']['name']
and
,3-D-Scene-Graph/relation_prior_extraction.py
Line 103 in 0deb403
pred, obj, sub = rel['predicate'], rel['object']['name'], rel['subject']['name']
the key 'name' may not appear in the rel['subject'] or rel['object']. I think it may be the problem of the updated raw relationships.json. So you can replace them with the following codes:
if 'name' in rel['object']:
obj = rel['object']['name']
else:
obj = rel['object']['names'][0]
if 'name' in rel['subject']:
sub = rel['subject']['name']
else:
sub = rel['subject']['names'][0]
- In the ,
self.intrinsic_depth = np.array(intrinsic_depth[:3,:3])
the intrinsic_depth is a list containing the strings rather than float numbers. You can add the following codes:
tmp_intrinsic_depth = []
for row in intrinsic_depth:
row = [float(r) for r in row]
tmp_intrinsic_depth.append(row)
intrinsic_depth = tmp_intrinsic_depth
- In the
3-D-Scene-Graph/scene_graph_tuning.py
Line 160 in 0deb403
img_obj_detected = tools_for_visualizing.vis_object_detection(image_scene.copy(), test_set, obj_cls[:, 0], obj_boxes, obj_scores[:, 0])
You should firstly create the class instance first.
toolforvis = tools_for_visualizing()
img_obj_detected = toolforvis.vis_object_detection(image_scene.copy(), test_set, obj_cls[:, 0], obj_boxes, obj_scores[:, 0])
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels