From 093999e71fc546f0e4db67a918d139755931e9d4 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Mon, 13 Dec 2021 04:36:50 -0800 Subject: [PATCH] update tutorials for release Summary: Pre 0.6.1 release, make the tutorials expect wheels with PyTorch 1.10.0 Reviewed By: patricklabatut Differential Revision: D33016834 fbshipit-source-id: b8c5c1c6158f806c3e55ec668117fa762fa4b75f --- docs/tutorials/bundle_adjustment.ipynb | 2 +- ...ra_position_optimization_with_differentiable_rendering.ipynb | 2 +- docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb | 2 +- docs/tutorials/deform_source_mesh_to_target_mesh.ipynb | 2 +- docs/tutorials/fit_simple_neural_radiance_field.ipynb | 2 +- docs/tutorials/fit_textured_mesh.ipynb | 2 +- docs/tutorials/fit_textured_volume.ipynb | 2 +- docs/tutorials/render_colored_points.ipynb | 2 +- docs/tutorials/render_densepose.ipynb | 2 +- docs/tutorials/render_textured_meshes.ipynb | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/tutorials/bundle_adjustment.ipynb b/docs/tutorials/bundle_adjustment.ipynb index 20c4f258..05ab505a 100644 --- a/docs/tutorials/bundle_adjustment.ipynb +++ b/docs/tutorials/bundle_adjustment.ipynb @@ -89,7 +89,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb index f5f72441..6cd75e45 100644 --- a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb +++ b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb @@ -76,7 +76,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb b/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb index 2650cf37..3494888e 100644 --- a/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb +++ b/docs/tutorials/dataloaders_ShapeNetCore_R2N2.ipynb @@ -51,7 +51,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb index ecd884b7..2b66690c 100644 --- a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb +++ b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb @@ -90,7 +90,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/fit_simple_neural_radiance_field.ipynb b/docs/tutorials/fit_simple_neural_radiance_field.ipynb index 60b43886..4f58617e 100644 --- a/docs/tutorials/fit_simple_neural_radiance_field.ipynb +++ b/docs/tutorials/fit_simple_neural_radiance_field.ipynb @@ -56,7 +56,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/fit_textured_mesh.ipynb b/docs/tutorials/fit_textured_mesh.ipynb index 5e3913e3..0be4d7da 100644 --- a/docs/tutorials/fit_textured_mesh.ipynb +++ b/docs/tutorials/fit_textured_mesh.ipynb @@ -68,7 +68,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/fit_textured_volume.ipynb b/docs/tutorials/fit_textured_volume.ipynb index 3cf349ab..d3a3a75a 100644 --- a/docs/tutorials/fit_textured_volume.ipynb +++ b/docs/tutorials/fit_textured_volume.ipynb @@ -47,7 +47,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/render_colored_points.ipynb b/docs/tutorials/render_colored_points.ipynb index f191c7df..43607289 100644 --- a/docs/tutorials/render_colored_points.ipynb +++ b/docs/tutorials/render_colored_points.ipynb @@ -50,7 +50,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/render_densepose.ipynb b/docs/tutorials/render_densepose.ipynb index 068694d3..6f166ee0 100644 --- a/docs/tutorials/render_densepose.ipynb +++ b/docs/tutorials/render_densepose.ipynb @@ -57,7 +57,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n", diff --git a/docs/tutorials/render_textured_meshes.ipynb b/docs/tutorials/render_textured_meshes.ipynb index 32074c73..a33e2715 100644 --- a/docs/tutorials/render_textured_meshes.ipynb +++ b/docs/tutorials/render_textured_meshes.ipynb @@ -73,7 +73,7 @@ "except ModuleNotFoundError:\n", " need_pytorch3d=True\n", "if need_pytorch3d:\n", - " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n", + " if torch.__version__.startswith(\"1.10.\") and sys.platform.startswith(\"linux\"):\n", " # We try to install PyTorch3D via a released wheel.\n", " version_str=\"\".join([\n", " f\"py3{sys.version_info.minor}_cu\",\n",