1. 11 Jul, 2024 1 commit
    • Jeremy Reizenstein's avatar
      remove fvcore dependency · 4df110b0
      Jeremy Reizenstein authored
      Summary: This is not actually needed and is causing a conda-forge confusion to do with python_abi - which needs users to have `-c conda-forge` when they install pytorch3d.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D59587930
      
      fbshipit-source-id: 961ae13a62e1b2b2ce6d8781db38bd97eca69e65
      4df110b0
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 23 Aug, 2022 1 commit
    • Jeremy Reizenstein's avatar
      Update SMPL url · 5e7707b1
      Jeremy Reizenstein authored
      Summary: Fix issue #1306
      
      Reviewed By: kjchalup
      
      Differential Revision: D38941342
      
      fbshipit-source-id: 306ea698ab6af22b874df6e2abdaa9021b65e1ef
      5e7707b1
  8. 10 Aug, 2022 1 commit
    • Jeremy Reizenstein's avatar
      update notebooks for 0.7.0 · 65e5bb3e
      Jeremy Reizenstein authored
      Summary: We now expect pytorch 1.12
      
      Reviewed By: patricklabatut
      
      Differential Revision: D38425758
      
      fbshipit-source-id: a22e672fcb0dc18f7d6424323d9cc6aaf5fcb4c6
      65e5bb3e
  9. 28 Apr, 2022 1 commit
  10. 21 Jan, 2022 1 commit
    • Jeremy Reizenstein's avatar
      safer pip install in doc · 174738c3
      Jeremy Reizenstein authored
      Summary: Add --no-cache and --no-index to all commands which try to download wheels from S3, to avoid hitting pypi.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D33507975
      
      fbshipit-source-id: ee796e43cc1864e475cd73c248e9900487012f25
      174738c3
  11. 04 Jan, 2022 1 commit
    • Jeremy Reizenstein's avatar
      More company name & License · 741777b5
      Jeremy Reizenstein authored
      Summary: Manual adjustments for license changes.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D33405657
      
      fbshipit-source-id: 8a21735726f3aece9f9164da9e3b272b27db8032
      741777b5
  12. 18 Dec, 2021 1 commit
    • Jeremy Reizenstein's avatar
      PyTorch>1.9 version str · 1152a93b
      Jeremy Reizenstein authored
      Summary: Make code for downloading linux wheels robust to double-digit PyTorch minor version.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D33170562
      
      fbshipit-source-id: 559a97cc98ff8411e235a9f9e29f84b7a400c716
      1152a93b
  13. 13 Dec, 2021 1 commit
    • Jeremy Reizenstein's avatar
      update tutorials for release · 093999e7
      Jeremy Reizenstein authored
      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
      093999e7
  14. 03 Aug, 2021 1 commit
    • Jeremy Reizenstein's avatar
      update tutorials for new prebuilt version · addbe49d
      Jeremy Reizenstein authored
      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
      addbe49d
  15. 09 Apr, 2021 1 commit
    • Jeremy Reizenstein's avatar
      spelling · 124bb5e3
      Jeremy Reizenstein authored
      Summary: Collection of spelling things, mostly in docs / tutorials.
      
      Reviewed By: gkioxari
      
      Differential Revision: D26101323
      
      fbshipit-source-id: 652f62bc9d71a4ff872efa21141225e43191353a
      124bb5e3
  16. 17 Mar, 2021 1 commit
    • Jeremy Reizenstein's avatar
      Remove _read_image from densepose example · 6c4151a8
      Jeremy Reizenstein authored
      Summary:
      As noted in #601, the example notebook was using an internal function _read_image from PyTorch3D, which has changed signature recently. It is not meant to be used externally. Switch to using PIL directly.
      
      Other changes: (1) removed unused skimage import. (2) some small tidyups. We now don't have places where cells modify values set by other cells. (3) removed bad calls to `plt.grid` which have no effect.
      
      Reviewed By: theschnitz, nikhilaravi
      
      Differential Revision: D27080372
      
      fbshipit-source-id: 2fce651b3e5d7a4619f0a2b298c5db18c8fa1e2c
      6c4151a8
  17. 05 Feb, 2021 1 commit
    • Jeremy Reizenstein's avatar
      update notebooks for s3 wheels · db6fbfad
      Jeremy Reizenstein authored
      Summary: Prepare the tutorial notebooks to use wheels from S3 when run on colab.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D26226932
      
      fbshipit-source-id: 1f9366c3fb4ba195333a5d5dfa3f6876ea934508
      db6fbfad
  18. 11 Nov, 2020 1 commit
  19. 10 Nov, 2020 1 commit
    • Jeremy Reizenstein's avatar
      CUB when installing inside tutorials · de7af4a7
      Jeremy Reizenstein authored
      Summary:
      We now require CUB for building, here we make the tutorials include it.
      
      Also make the installation cell do nothing if it has already succeeded.
      
      I use curl not wget, and `os.environ` to set the variables not shell methods, because they are more likely to work on Windows.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24860574
      
      fbshipit-source-id: 5be86af15e53f8db016ee0e96fb43153bd69adbc
      de7af4a7
  20. 22 Oct, 2020 1 commit
    • Amitav Baruah's avatar
      Remove duplicate imports in DensePose tutorial · 2084160b
      Amitav Baruah authored
      Summary: We were importing torch, torchvision, PyTorch3D, and sys twice. This is just removing the duplicate (unneeded) imports
      
      Reviewed By: theschnitz
      
      Differential Revision: D24479270
      
      fbshipit-source-id: 1048732f65242eb776c3eef537cb1ae58815c1eb
      2084160b
  21. 21 Sep, 2020 1 commit
    • Amitav Baruah's avatar
      Add tutorial notebook for rendering densepose · f34f4073
      Amitav Baruah authored
      Summary:
      Add a notebook demonstrating how to use Pytorch3D to render a textured mesh with the DensePose textures and the SMPL model
      
      {F336408690}
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D23784314
      
      fbshipit-source-id: c92f32fb9b9468eb7ec26bf58dcabb1f26d92e7b
      f34f4073