From def6fc67e8d4b97ff6ecd799e40dbed4122b83aa Mon Sep 17 00:00:00 2001 From: Christian <56335168+chri002@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:24:35 +0100 Subject: [PATCH] Creato con Colab --- test.ipynb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test.ipynb b/test.ipynb index 6a838bd..40c2eab 100644 --- a/test.ipynb +++ b/test.ipynb @@ -684,7 +684,8 @@ " return blurred" ], "metadata": { - "id": "PoTzLauTQlHl" + "id": "PoTzLauTQlHl", + "cellView": "form" }, "execution_count": null, "outputs": [] @@ -763,7 +764,8 @@ "points = (from2Dto3D_vectorized_torch(depth_map, img, depth, quality)).cpu().numpy()" ], "metadata": { - "id": "u9S_ulEFRmiI" + "id": "u9S_ulEFRmiI", + "cellView": "form" }, "execution_count": null, "outputs": [] @@ -781,7 +783,8 @@ "points = transform_points(points, translate=(0, 0, 0), rotate=(0, 0, 0), scale=(1,1,0.5))" ], "metadata": { - "id": "gEjBciYYldPF" + "id": "gEjBciYYldPF", + "cellView": "form" }, "execution_count": null, "outputs": [] @@ -815,8 +818,8 @@ "source": [ "#@title Translation\n", "tx=0#@param {\"type\" : \"number\"}\n", - "ty=-50#@param {\"type\" : \"number\"}\n", - "tz=0#@param {\"type\" : \"number\"}\n", + "ty=0#@param {\"type\" : \"number\"}\n", + "tz=200#@param {\"type\" : \"number\"}\n", "\n", "points = transform_points(points, translate=(tx, ty, tz), rotate=(0, 0, 0), scale=(1,1,1))" ], @@ -875,7 +878,7 @@ "fov=45 #@param {\"type\" : \"number\"}\n", "correction = True #@param{\"type\":\"boolean\"}\n", "k_size =3 #@param{\"type\" : \"number\"}\n", - "points_cop = transform_points(points.detach().cpu().numpy().copy(), translate=translation, scale=scale)\n", + "points_cop = transform_points(points.copy(), translate=translation, scale=scale)\n", "translation = np.array([0,0, -(height/m.sin(m.radians(fov)))])\n", "points_cop = transform_points(points_cop, translate=translation)\n", "\n",