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

Bug reports and remedies #29

Open
Kenneth-Wong opened this issue Oct 10, 2020 · 0 comments
Open

Bug reports and remedies #29

Kenneth-Wong opened this issue Oct 10, 2020 · 0 comments

Comments

@Kenneth-Wong
Copy link

Thanks for your great job. And here I want to report some bugs and I have remedied them.

  1. In the
    obj, sub = rel['object']['name'], rel['subject']['name']

    and
    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]
  1. 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
  1. In the
    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])
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

1 participant