Commit addbe49d authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

update tutorials for new prebuilt version

Summary: At the next release, the prebuilt PyTorch3D wheels will depend on PyTorch 1.9.0. Update the tutorials to expect this.

Reviewed By: nikhilaravi

Differential Revision: D29614450

fbshipit-source-id: 39978a6a55b62fb7c7e62aaa8f138e47cadd631e
parent 4d2c0600
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"except ModuleNotFoundError:\n", "except ModuleNotFoundError:\n",
" need_pytorch3d=True\n", " need_pytorch3d=True\n",
"if need_pytorch3d:\n", "if need_pytorch3d:\n",
" if torch.__version__.startswith(\"1.7\") and sys.platform.startswith(\"linux\"):\n", " if torch.__version__.startswith(\"1.9\") and sys.platform.startswith(\"linux\"):\n",
" # We try to install PyTorch3D via a released wheel.\n", " # We try to install PyTorch3D via a released wheel.\n",
" version_str=\"\".join([\n", " version_str=\"\".join([\n",
" f\"py3{sys.version_info.minor}_cu\",\n", " f\"py3{sys.version_info.minor}_cu\",\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment