- 28 Mar, 2024 1 commit
-
-
Roeia Kishk authored
Summary: ### Generalise tutorials' pip searching: ## Required Information: This diff contains changes to several PyTorch3D tutorials. **Purpose of this diff:** Replace the current installation code with a more streamlined approach that tries to install the wheel first and falls back to installing from source if the wheel is not found. **Why this diff is required:** This diff makes it easier to cope with new PyTorch releases and reduce the need for manual intervention, as the current process involves checking the version of PyTorch in Colab and building a new wheel if it doesn't match the expected version, which generates additional work each time there is a a new PyTorch version in Colab. **Changes:** Before: ``` if torch.__version__.startswith("2.1.") and sys.platform.startswith("linux"): # We try to install PyTorch3D via a released wheel. pyt_version_str=torch.__version__.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html else: # We try to install PyTorch3D from source. !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable' ``` After: ``` pyt_version_str=torch.__version__.split("+")[0].replace(".", "") version_str="".join([ f"py3{sys.version_info.minor}_cu", torch.version.cuda.replace(".",""), f"_pyt{pyt_version_str}" ]) !pip install fvcore iopath if sys.platform.startswith("linux"): # We try to install PyTorch3D via a released wheel. !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html pip_list = !pip freeze need_pytorch3d = not any(i.startswith("pytorch3d==") for i in pip_list) if need_pytorch3d: # We try to install PyTorch3D from source. !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable' ``` Reviewed By: bottler Differential Revision: D55431832 fbshipit-source-id: a8de9162470698320241ae8401427dcb1ce17c37
-
- 19 Feb, 2024 1 commit
-
-
Jeremy Reizenstein authored
Summary: version number changed with `sed -i "s/2.1\./2.2./" *b` Reviewed By: cijose Differential Revision: D53852986 fbshipit-source-id: 1662c8e6d671321887a3263bc3880d5c33d1f866
-
- 31 Oct, 2023 1 commit
-
-
Jeremy Reizenstein authored
Summary: ``` sed -i 's/startswith((\"1.13.\", \"2.0.\"))/startswith\(\"2.1.\"\)/' *b ``` Reviewed By: shapovalov Differential Revision: D50806967 fbshipit-source-id: df19462564edb1f840753efeae96b516c7a9f764
-
- 04 Apr, 2023 1 commit
-
-
Jeremy Reizenstein authored
Summary: Allow pytorch2.0 download: ``` sed -i 's/startswith(\\"1.13.\\")/startswith\(\(\\"1.13.\\", \\"2.0.\\"\)\)/' *b ``` Remove lines which download and install CUB: ``` sed -i.bak '/1.10\.0/d' *b rm *.bak ``` Reviewed By: davidsonic Differential Revision: D44343299 fbshipit-source-id: e8399b5dd10068c717178ba9ffb0630bacca3253
-
- 16 Dec, 2022 1 commit
-
-
Jeremy Reizenstein authored
Summary: Expect pytorch 1.13 Reviewed By: davidsonic Differential Revision: D42072731 fbshipit-source-id: 13ba4e7de18060dc4e5c0e10f850f17a88750fc9
-
- 03 Oct, 2022 1 commit
-
-
Darijan Gudelj authored
Summary: new implicitronRayBundle with added cameraIDs and camera counts. Added to enable a single raybundle inside Implicitron and easier extension in the future. Since RayBundle is named tuple and RayBundleHeterogeneous is dataclass and RayBundleHeterogeneous cannot inherit RayBundle. So if there was no ImplicitronRayBundle every function that uses RayBundle now would have to use Union[RayBundle, RaybundleHeterogeneous] which is confusing and unecessary complicated. Reviewed By: bottler, kjchalup Differential Revision: D39262999 fbshipit-source-id: ece160e32f6c88c3977e408e966789bf8307af59
-
- 22 Sep, 2022 1 commit
-
-
Jeremy Reizenstein authored
Summary: Call expand_args_field when instantiating an object. Reviewed By: shapovalov Differential Revision: D39541931 fbshipit-source-id: de8e1038927ff0112463394412d5d8c26c4a1e17
-
- 10 Aug, 2022 1 commit
-
-
Jeremy Reizenstein authored
Summary: need to pip install visdom in new volumes tutorial. Reviewed By: kjchalup Differential Revision: D38501905 fbshipit-source-id: 534bf097e41f05b3389e9420e6dd2b61a4517861
-
- 04 Aug, 2022 1 commit
-
-
Jeremy Reizenstein authored
Summary: new Reviewed By: kjchalup Differential Revision: D38425739 fbshipit-source-id: 23e7a1dd01c034b231511acecf40ea0deb9a067f
-