Skip to content

Commit

Permalink
Fix np warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MedericFourmy committed Feb 26, 2024
1 parent 4cb0305 commit 4b9a9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion happypose/toolbox/lib3d/multiview.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _get_views_TCO_pos_sphere(TCO, tCR, cam_positions_wrt_cam0):
ref = NodePath("reference_point")
ref.reparentTo(root)
tWR = TOC[:3, :3] @ tCR.reshape((3, 1)) + TOC[:3, [-1]]
ref.setPos(*tWR[:3])
ref.setPos(*tWR[:3].flatten())

radius = np.linalg.norm(np.array(tCR)[:3])
cam_positions_wrt_cam0 = cam_positions_wrt_cam0 * radius
Expand Down

0 comments on commit 4b9a9de

Please sign in to comment.