1. 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
  2. 04 Jan, 2022 2 commits
    • 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
    • Jeremy Reizenstein's avatar
      Update license for company name · 9eeb456e
      Jeremy Reizenstein authored
      Summary: Update all FB license strings to the new format.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D33403538
      
      fbshipit-source-id: 97a4596c5c888f3c54f44456dc07e718a387a02c
      9eeb456e
  3. 21 Dec, 2021 1 commit
    • Jeremy Reizenstein's avatar
      screen space docstrings fix · eb2bbf84
      Jeremy Reizenstein authored
      Summary: Fix some comments to match the recent change to transform_points_screen.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D33243697
      
      fbshipit-source-id: dc8d182667a9413bca2c2e3657f97b2f7a47c795
      eb2bbf84
  4. 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
  5. 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
  6. 07 Dec, 2021 1 commit
    • Jeremy Reizenstein's avatar
      screen cameras lose -1 · bf3bc6f8
      Jeremy Reizenstein authored
      Summary:
      All the renderers in PyTorch3D (pointclouds including pulsar, meshes, raysampling) use align_corners=False style. NDC space goes between the edges of the outer pixels. For a non square image with W>H, the vertical NDC space goes from -1 to 1 and the horizontal from -W/H to W/H.
      
      However it was recently pointed out that functionality which deals with screen space inside the camera classes is inconsistent with this. It unintentionally uses align_corners=True. This fixes that.
      
      This would change behaviour of the following:
      - If you create a camera in screen coordinates, i.e. setting in_ndc=False, then anything you do with the camera which touches NDC space may be affected, including trying to use renderers. The transform_points_screen function will not be affected...
      - If you call the function “transform_points_screen” on a camera defined in NDC space results will be different. I have illustrated in the diff how to get the old results from the new results but this probably isn’t the right long-term solution..
      
      Reviewed By: gkioxari
      
      Differential Revision: D32536305
      
      fbshipit-source-id: 377325a9137282971dcb7ca11a6cba3fc700c9ce
      bf3bc6f8
  7. 24 Nov, 2021 1 commit
  8. 17 Oct, 2021 1 commit
  9. 16 Oct, 2021 1 commit
    • Jeremy Reizenstein's avatar
      Remove version number from docs title · 14dd2611
      Jeremy Reizenstein authored
      Summary: Small docs fixes: spelling. Avoid things which get out of date quickly: year, version.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D31659927
      
      fbshipit-source-id: b0111140bdaf3c6cadc09f70621bf5656909ca02
      14dd2611
  10. 04 Oct, 2021 1 commit
    • Georgia Gkioxari's avatar
      minor note fix · 1360d69f
      Georgia Gkioxari authored
      Summary: A small fix for the iou3d note
      
      Reviewed By: bottler
      
      Differential Revision: D31370686
      
      fbshipit-source-id: 6c97302b5c78de52915f31be70f234179c4b246d
      1360d69f
  11. 30 Sep, 2021 1 commit
    • Georgia Gkioxari's avatar
      Note for iou3d · 1b1ba561
      Georgia Gkioxari authored
      Summary:
      A note for our new algorithm for IoU of oriented 3D boxes. It includes
      * A description of the algorithm
      * A comparison with Objectron
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D31288066
      
      fbshipit-source-id: 0ea8da887bc5810bf4a3e0848223dd3590df1538
      1b1ba561
  12. 30 Aug, 2021 1 commit
  13. 16 Aug, 2021 1 commit
    • Jeremy Reizenstein's avatar
      rename master branch to main · b0dd0c88
      Jeremy Reizenstein authored
      Summary: Change doc references to master branch to its new name main.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D30303018
      
      fbshipit-source-id: cfdbb207dfe3366de7e0ca759ed56f4b8dd894d1
      b0dd0c88
  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. 02 Aug, 2021 1 commit
    • Georgia Gkioxari's avatar
      NDC/screen cameras API fix, compatibility with renderer · 0c32f094
      Georgia Gkioxari authored
      Summary:
      API fix for NDC/screen cameras and compatibility with PyTorch3D renderers.
      
      With this new fix:
      * Users can define cameras and `transform_points` under any coordinate system conventions. The transformation applies the camera K and RT to the input points, not regarding for PyTorch3D conventions. So this makes cameras completely independent from PyTorch3D renderer.
      
      * Cameras can be defined either in NDC space or screen space. For existing ones, FoV cameras are in NDC space. Perspective/Orthographic can be defined in NDC or screen space.
      
      * The interface with PyTorch3D renderers happens through `transform_points_ndc` which transforms points to the NDC space and assumes that input points are provided according to PyTorch3D conventions.
      
      * Similarly, `transform_points_screen` transforms points to screen space and again assumes that input points are under PyTorch3D conventions.
      
      * For Orthographic/Perspective cameras, if they are defined in screen space, the `get_ndc_camera_transform` allows points to be converted to NDC for use for the renderers.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D26932657
      
      fbshipit-source-id: 1a964e3e7caa54d10c792cf39c4d527ba2fb2e79
      0c32f094
  16. 06 Jul, 2021 1 commit
  17. 29 Jun, 2021 1 commit
  18. 28 Jun, 2021 1 commit
    • Patrick Labatut's avatar
      Deprecate so3_exponential_map · 5284de6e
      Patrick Labatut authored
      Summary: Deprecate the `so3_exponential_map()` function in favor of its alias `so3_exp_map()`: this aligns with the naming of `so3_log_map()` and the recently introduced `se3_exp_map()` / `se3_log_map()` pair.
      
      Reviewed By: bottler
      
      Differential Revision: D29329966
      
      fbshipit-source-id: b6f60b9e86b2995f70b1fbeb16f9feea05c55de9
      5284de6e
  19. 22 Jun, 2021 2 commits
    • Patrick Labatut's avatar
      License lint codebase · af93f348
      Patrick Labatut authored
      Summary: License lint codebase
      
      Reviewed By: theschnitz
      
      Differential Revision: D29001799
      
      fbshipit-source-id: 5c59869911785b0181b1663bbf430bc8b7fb2909
      af93f348
    • Patrick Labatut's avatar
      Lint codebase · 7e43f29d
      Patrick Labatut authored
      Summary: Lint codebase
      
      Reviewed By: bottler
      
      Differential Revision: D29263057
      
      fbshipit-source-id: ac97f01d2a79fead3b09c2cbb21b50ce688a577d
      7e43f29d
  20. 18 Jun, 2021 1 commit
    • Nikhila Ravi's avatar
      Small fix to tutorial · a343cf53
      Nikhila Ravi authored
      Summary: Small fix to `fit_textured_mesh.ipynb` tutorial due to a recent change in numpy
      
      Reviewed By: bottler
      
      Differential Revision: D29219990
      
      fbshipit-source-id: f5feeef9eb952720ea7154d066795fbbe64ce7a1
      a343cf53
  21. 27 May, 2021 1 commit
  22. 26 May, 2021 1 commit
    • Jeremy Reizenstein's avatar
      Experimental glTF reading · ed6983ea
      Jeremy Reizenstein authored
      Summary: Experimental data loader for taking the default scene from a GLB file and converting it to a single mesh in PyTorch3D.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D25900167
      
      fbshipit-source-id: bff22ac00298b83a0bd071ae5c8923561e1d81d7
      ed6983ea
  23. 05 May, 2021 1 commit
    • Jeremy Reizenstein's avatar
      remove skimage import from most tutorials · d17b121d
      Jeremy Reizenstein authored
      Summary:
      Several tutorials were importing skimage and not using it (and it is not an official dependency of PyTorch3D).
      
      Also several had a bad call to plt.grid.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D28185822
      
      fbshipit-source-id: adabfd0d4d339e1081c26b7b28f5e3953b492f2e
      d17b121d
  24. 14 Apr, 2021 1 commit
  25. 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
  26. 17 Mar, 2021 2 commits
    • 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
    • Jeremy Reizenstein's avatar
      Tidy comments around imports · 8e1bcd55
      Jeremy Reizenstein authored
      Summary: Make black and isort stop disagreeing by removing some unneeded comments around import statements. pyre ignores are moved.
      
      Reviewed By: theschnitz
      
      Differential Revision: D27118137
      
      fbshipit-source-id: 9926d0f21142adcf9b5cfe1d394754317f6386df
      8e1bcd55
  27. 26 Feb, 2021 1 commit
    • Nikhila Ravi's avatar
      pulsar image size bug fix · 4bb3fff5
      Nikhila Ravi authored
      Summary: Small change to swap how height/width are inferred from the image_size setting.
      
      Reviewed By: gkioxari
      
      Differential Revision: D26648340
      
      fbshipit-source-id: 2c657a115c96cadf3ac63be87b0e1bfba10c9315
      4bb3fff5
  28. 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
  29. 22 Jan, 2021 2 commits
    • imlixinyang's avatar
      Update generate_cow_renders.py (#529) · 2ee11c78
      imlixinyang authored
      Summary:
      Typo fixed.
      
      Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/529
      
      Reviewed By: bottler
      
      Differential Revision: D26008651
      
      Pulled By: nikhilaravi
      
      fbshipit-source-id: 76d5baadba7bcd3577397adb842e964ee4490b7d
      2ee11c78
    • Jeremy Reizenstein's avatar
      Allow single offset in offset_verts · ddebdfbc
      Jeremy Reizenstein authored
      Summary:
      It is common when trying things out to want to move a whole mesh or point cloud by the same amount. Here we allow the offset functions to broadcast.
      
      Also add a sanity check to join_meshes_as_scene which it is easy to call wrongly.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D25980593
      
      fbshipit-source-id: cdf1568e1317e3b81ad94ed4e608ba7eef81290b
      ddebdfbc
  30. 07 Jan, 2021 1 commit
    • Jeremy Reizenstein's avatar
      skeleton of pluggable IO · b183dcb6
      Jeremy Reizenstein authored
      Summary: Unified interface for loading and saving meshes and pointclouds.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D25372968
      
      fbshipit-source-id: 6fe57cc3704a89d81d13e959bee707b0c7b57d3b
      b183dcb6
  31. 06 Jan, 2021 2 commits
    • David Novotny's avatar
      Tutorial - Fit neural radiance field · 9fc661f8
      David Novotny authored
      Summary: Implements a simple nerf tutorial.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24650983
      
      fbshipit-source-id: b3db51c0ed74779ec9b510350d1675b0ae89422c
      9fc661f8
    • David Novotny's avatar
      Tutorial - Fit textured volume. · 01f86dde
      David Novotny authored
      Summary: Implements a notebook that fits a volume to multiple views of the cow mesh.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24553385
      
      fbshipit-source-id: 367ca39e176b40df2c5946c9c05d3be824dc8d1c
      01f86dde
  32. 24 Dec, 2020 1 commit
    • Jeremy Reizenstein's avatar
      iopath dependency · 513a6476
      Jeremy Reizenstein authored
      Summary: Add ioPath as a dependency of PyTorch3D in preparation for using the new PathManager.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D25372971
      
      fbshipit-source-id: d8aa661d2de975e747dd494edc42bf843990cf68
      513a6476
  33. 22 Dec, 2020 1 commit
    • Jeremy Reizenstein's avatar
      requirements for readthedocs · 0a309ec6
      Jeremy Reizenstein authored
      Summary: Use a more recent PyTorch to build the documentation.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D25679756
      
      fbshipit-source-id: 83d647f709337110d39886eaa6aad2565d740c6d
      0a309ec6
  34. 17 Dec, 2020 1 commit
    • Nikhila Ravi's avatar
      Texture Atlas sampling bug fix · 01759d8f
      Nikhila Ravi authored
      Summary: Fixes the index out of bound errors for texture sampling from a texture atlas: when barycentric coordinates are 1.0, the integer index into the (R, R) per face texture map is R (max can only be R-1).
      
      Reviewed By: gkioxari
      
      Differential Revision: D25543803
      
      fbshipit-source-id: 82d0935b981352b49c1d95d5a17f9cc88bad0a82
      01759d8f
  35. 09 Dec, 2020 1 commit
    • Nikhila Ravi's avatar
      Non square image rasterization for meshes · d07307a4
      Nikhila Ravi authored
      Summary:
      There are a couple of options for supporting non square images:
      1) NDC stays at [-1, 1] in both directions with the distance calculations all modified by (W/H). There are a lot of distance based calculations (e.g. triangle areas for barycentric coordinates etc) so this requires changes in many places.
      2) NDC is scaled by (W/H) so the smallest side has [-1, 1]. In this case none of the distance calculations need to be updated and only the pixel to NDC calculation needs to be modified.
      
      I decided to go with option 2 after trying option 1!
      
      API Changes:
      - Image size can now be specified optionally as a tuple
      
      TODO:
      - add a benchmark test for the non square case.
      
      Reviewed By: jcjohnson
      
      Differential Revision: D24404975
      
      fbshipit-source-id: 545efb67c822d748ec35999b35762bce58db2cf4
      d07307a4