1. 28 Mar, 2024 1 commit
    • Roeia Kishk's avatar
      Changed tutorials' pip searching · 31e3488a
      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
      31e3488a
  2. 19 Feb, 2024 1 commit
    • Jeremy Reizenstein's avatar
      Update tutorials for 0.7.6 · f247c86d
      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
      f247c86d
  3. 31 Oct, 2023 1 commit
    • Jeremy Reizenstein's avatar
      update notebooks for 0.7.5 · 650cc09d
      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
      650cc09d
  4. 04 Apr, 2023 1 commit
    • Jeremy Reizenstein's avatar
      update notebooks for 0.7.3 · 274b6df9
      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
      274b6df9
  5. 16 Dec, 2022 1 commit
    • Jeremy Reizenstein's avatar
      Update notebooks for 0.7.2 · 6c053a6c
      Jeremy Reizenstein authored
      Summary: Expect pytorch 1.13
      
      Reviewed By: davidsonic
      
      Differential Revision: D42072731
      
      fbshipit-source-id: 13ba4e7de18060dc4e5c0e10f850f17a88750fc9
      6c053a6c
  6. 22 Sep, 2022 1 commit
    • Jeremy Reizenstein's avatar
      make expand_args_fields optional · d6a197be
      Jeremy Reizenstein authored
      Summary: Call expand_args_field when instantiating an object.
      
      Reviewed By: shapovalov
      
      Differential Revision: D39541931
      
      fbshipit-source-id: de8e1038927ff0112463394412d5d8c26c4a1e17
      d6a197be
  7. 04 Aug, 2022 1 commit
    • Jeremy Reizenstein's avatar
      config system tutorial · b28754f8
      Jeremy Reizenstein authored
      Summary: new
      
      Reviewed By: kjchalup
      
      Differential Revision: D38425731
      
      fbshipit-source-id: 0fd8f524df6b29ceb8c7c9a674022412c1efc3b5
      b28754f8