From 4b9a9de4aa5997d46552f5d929d18f874d6a7cf5 Mon Sep 17 00:00:00 2001 From: mfourmy Date: Mon, 26 Feb 2024 11:39:53 +0100 Subject: [PATCH] Fix np warning --- happypose/toolbox/lib3d/multiview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/happypose/toolbox/lib3d/multiview.py b/happypose/toolbox/lib3d/multiview.py index 829fc644..ad7e76ee 100644 --- a/happypose/toolbox/lib3d/multiview.py +++ b/happypose/toolbox/lib3d/multiview.py @@ -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