1. 18 May, 2022 1 commit
    • Jeremy Reizenstein's avatar
      Make feature extractor pluggable · 9ec9d057
      Jeremy Reizenstein authored
      Summary: Make ResNetFeatureExtractor be an implementation of FeatureExtractorBase.
      
      Reviewed By: davnov134
      
      Differential Revision: D35433098
      
      fbshipit-source-id: 0664a9166a88e150231cfe2eceba017ae55aed3a
      9ec9d057
  2. 17 May, 2022 6 commits
  3. 16 May, 2022 2 commits
    • Roman Shapovalov's avatar
      Correcting recent bugs code after debugging on devfair. · 0143d63b
      Roman Shapovalov authored
      Summary:
      1. Typo in the dataset path in the config.
      2. Typo in num_frames.
      3. Pick sequence was cached before it was modified for single-sequence.
      
      Reviewed By: bottler
      
      Differential Revision: D36417329
      
      fbshipit-source-id: 6dcd75583de510412e1ae58f63db04bb4447403e
      0143d63b
    • Jeremy Reizenstein's avatar
      create_x_impl · 899a3192
      Jeremy Reizenstein authored
      Summary: Make create_x delegate to create_x_impl so that users can rely on create_x_impl in their overrides of create_x.
      
      Reviewed By: shapovalov, davnov134
      
      Differential Revision: D35929810
      
      fbshipit-source-id: 80595894ee93346b881729995775876b016fc08e
      899a3192
  4. 15 May, 2022 1 commit
    • John Reese's avatar
      apply import merging for fbcode (11 of 11) · 3b230064
      John Reese authored
      Summary:
      Applies new import merging and sorting from µsort v1.0.
      
      When merging imports, µsort will make a best-effort to move associated
      comments to match merged elements, but there are known limitations due to
      the diynamic nature of Python and developer tooling. These changes should
      not produce any dangerous runtime changes, but may require touch-ups to
      satisfy linters and other tooling.
      
      Note that µsort uses case-insensitive, lexicographical sorting, which
      results in a different ordering compared to isort. This provides a more
      consistent sorting order, matching the case-insensitive order used when
      sorting import statements by module name, and ensures that "frog", "FROG",
      and "Frog" always sort next to each other.
      
      For details on µsort's sorting and merging semantics, see the user guide:
      https://usort.readthedocs.io/en/stable/guide.html#sorting
      
      Reviewed By: lisroach
      
      Differential Revision: D36402260
      
      fbshipit-source-id: 7cb52f09b740ccc580e61e6d1787d27381a8ce00
      3b230064
  5. 13 May, 2022 3 commits
  6. 12 May, 2022 6 commits
    • Jeremy Reizenstein's avatar
      resnet34 weights for remote executor · 9e57b994
      Jeremy Reizenstein authored
      Summary: Like vgg16 for lpips, internally we need resnet34 weights for coming feature extractor tests.
      
      Reviewed By: davnov134
      
      Differential Revision: D36349361
      
      fbshipit-source-id: 1c33009c904766fcc15e7e31cd15d0f820c57354
      9e57b994
    • David Novotny's avatar
      Raysampler as pluggable · e767c4b5
      David Novotny authored
      Summary:
      This converts raysamplers to ReplaceableBase so that users can hack their own raysampling impls.
      
      Context: Andrea tried to implement TensoRF within implicitron but could not due to the need to implement his own raysampler.
      
      Reviewed By: shapovalov
      
      Differential Revision: D36016318
      
      fbshipit-source-id: ef746f3365282bdfa9c15f7b371090a5aae7f8da
      e767c4b5
    • David Novotny's avatar
      Generic Raymarcher refactor · e85fa03c
      David Novotny authored
      Summary: Uses the GenericRaymarcher only as an ABC and derives two common implementations - EA raymarcher and Cumsum raymarcher (from neural volumes)
      
      Reviewed By: shapovalov
      
      Differential Revision: D35927653
      
      fbshipit-source-id: f7e6776e71f8a4e99eefc018a47f29ae769895ee
      e85fa03c
    • David Novotny's avatar
      ViewPooler class · 47d06c89
      David Novotny authored
      Summary: Implements a ViewPooler that groups ViewSampler and FeatureAggregator.
      
      Reviewed By: shapovalov
      
      Differential Revision: D35852367
      
      fbshipit-source-id: c1bcaf5a1f826ff94efce53aa5836121ad9c50ec
      47d06c89
    • John Reese's avatar
      formatting changes from black 22.3.0 · bef959c7
      John Reese authored
      Summary:
      Applies the black-fbsource codemod with the new build of pyfmt.
      
      paintitblack
      
      Reviewed By: lisroach
      
      Differential Revision: D36324783
      
      fbshipit-source-id: 280c09e88257e5e569ab729691165d8dedd767bc
      bef959c7
    • Krzysztof Chalupka's avatar
      Add Fragments.detach() · c21ba144
      Krzysztof Chalupka authored
      Summary: Add a capability to detach all detachable tensors in Fragments.
      
      Reviewed By: bottler
      
      Differential Revision: D35918133
      
      fbshipit-source-id: 03b5d4491a3a6791b0a7bc9119f26c1a7aa43196
      c21ba144
  7. 11 May, 2022 2 commits
  8. 10 May, 2022 1 commit
  9. 09 May, 2022 2 commits
    • Roman Shapovalov's avatar
      Extracted ImplicitronModelBase and unified API for GenericModel and ModelDBIR · a6dada39
      Roman Shapovalov authored
      Summary:
      To avoid model_zoo, we need to make GenericModel pluggable.
      I also align creation APIs for convenience.
      
      Reviewed By: bottler, davnov134
      
      Differential Revision: D35933093
      
      fbshipit-source-id: 8228926528eb41a795fbfbe32304b8019197e2b1
      a6dada39
    • David Novotny's avatar
      Add **kwargs to ViewMetrics.forward · 5c598418
      David Novotny authored
      Summary: GenericModel crashes in case the `aux` field of any Renderer is populated. This is because the `rendered.aux` is unpacked to  ViewMetrics.forward whose signature does not contain **kwargs. Hence, the contents of `aux` are unknown to forward's signature resulting in a crash.
      
      Reviewed By: bottler
      
      Differential Revision: D36166118
      
      fbshipit-source-id: 906a067ea02a3648a69667422466451bc219ebf6
      5c598418
  10. 06 May, 2022 4 commits
    • Krzysztof Chalupka's avatar
      Add type hints to MeshRenderer(WithFragments) · 2c64635d
      Krzysztof Chalupka authored
      Reviewed By: bottler
      
      Differential Revision: D36148049
      
      fbshipit-source-id: 87ca3ea8d5b5a315418cc597b36fd0a1dffb1e00
      2c64635d
    • Jeremy Reizenstein's avatar
      test runner for eval_demo · ec9580a1
      Jeremy Reizenstein authored
      Summary:
      Create a test runner for the eval_demo code.  Debugging this is useful for understanding datasets.
      
      Introduces an environment variable INTERACTIVE_TESTING for ignoring tests which are not intended for use in regular test runs.
      
      Reviewed By: shapovalov
      
      Differential Revision: D35964016
      
      fbshipit-source-id: ab0f93aff66b6cfeca942b14466cf81f7feb2224
      ec9580a1
    • Jeremy Reizenstein's avatar
      lstsq fix in circle fitting for old PyTorch · 44cb00e4
      Jeremy Reizenstein authored
      Summary: the pytorch3d.compat.lstsq function needs a 2D rhs.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D36195826
      
      fbshipit-source-id: 9dbafea2057035cc04973f56729dc97b47dcac83
      44cb00e4
    • Jeremy Reizenstein's avatar
      Add vis to readthedocs · 44ca5f95
      Jeremy Reizenstein authored
      Summary: pytorch3d/vis has been missing. Reduce prominence of common.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D36008733
      
      fbshipit-source-id: bbc9fbb031c8dc95870087fa48df29410ae69e35
      44ca5f95
  11. 04 May, 2022 1 commit
  12. 28 Apr, 2022 3 commits
    • Jeremy Reizenstein's avatar
      version 0.6.2 · 2bd65027
      Jeremy Reizenstein authored
      Summary: Update PyTorch3D version number
      
      Differential Revision: D35980555
      
      fbshipit-source-id: 637ccd33eef22d909985d2fce3958c78f3d0d551
      2bd65027
    • Jeremy Reizenstein's avatar
      INSTALL/README updates · 11635fbd
      Jeremy Reizenstein authored
      Summary: Updates for version 0.6.2
      
      Differential Revision: D35980557
      
      fbshipit-source-id: e677a22d4f8a323376310dfb536133bee8045f1f
      11635fbd
    • Jeremy Reizenstein's avatar
      update tutorials for version 0.6.2 · a268b18e
      Jeremy Reizenstein authored
      Summary: colab is now 1.11.0
      
      Differential Revision: D35980556
      
      fbshipit-source-id: 988a06c652518fb61ccbef2e7197e3422a706250
      a268b18e
  13. 27 Apr, 2022 2 commits
    • Krzysztof Chalupka's avatar
      fit_textured_mesh tutorial fixes · 7ea0756b
      Krzysztof Chalupka authored
      Summary: Updated to FoV cameras and added perspective_correct=False, otherwise it'll nan out.
      
      Reviewed By: bottler
      
      Differential Revision: D35970900
      
      fbshipit-source-id: 569b8de0b124d415f4b841924ddc85585cee2dda
      7ea0756b
    • Krzysztof Chalupka's avatar
      SplatterPhongShader 1: Pull out common Shader functionality into ShaderBase · 96889dea
      Krzysztof Chalupka authored
      Summary: Most of the shaders copypaste exactly the same code into `__init__` and `to`. I will be adding a new shader in the next diff, so let's make it a bit easier.
      
      Reviewed By: bottler
      
      Differential Revision: D35767884
      
      fbshipit-source-id: 0057e3e2ae3be4eaa49ae7e2bf3e4176953dde9d
      96889dea
  14. 26 Apr, 2022 4 commits
    • Jeremy Reizenstein's avatar
      isort->usort · 9f443ed2
      Jeremy Reizenstein authored
      Summary: Move from isort to usort now that usort supports sorting within lines.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D35893280
      
      fbshipit-source-id: 621c1cd285199d785408504430ee0bdf8683b21e
      9f443ed2
    • Jeremy Reizenstein's avatar
      object_mask only if required · 9320100a
      Jeremy Reizenstein authored
      Summary: New function to check if a renderer needs the object mask.
      
      Reviewed By: davnov134
      
      Differential Revision: D35254009
      
      fbshipit-source-id: 4c99e8a1c0f6641d910eb32bfd6cfae9d3463d50
      9320100a
    • Jeremy Reizenstein's avatar
      chunked_inputs · 2edb93d1
      Jeremy Reizenstein authored
      Summary: Make method for SDF's use of object mask more general, so that a renderer can be given per-pixel values.
      
      Reviewed By: shapovalov
      
      Differential Revision: D35247412
      
      fbshipit-source-id: 6aeccb1d0b5f1265a3f692a1453407a07e51a33c
      2edb93d1
    • Jeremy Reizenstein's avatar
      fix entry points in setup.py · 41c594ca
      Jeremy Reizenstein authored
      Summary: For `pip install` without -e, we need to name the entry point functions in setup.py.
      
      Reviewed By: patricklabatut
      
      Differential Revision: D35933037
      
      fbshipit-source-id: be15ae1a4bb7c5305ea2ba992d07f3279c452250
      41c594ca
  15. 14 Apr, 2022 1 commit
  16. 13 Apr, 2022 1 commit
    • Tim Hatch's avatar
      apply import merging for fbcode/vision/fair (2 of 2) · 34bbb3ad
      Tim Hatch authored
      Summary:
      Applies new import merging and sorting from µsort v1.0.
      
      When merging imports, µsort will make a best-effort to move associated
      comments to match merged elements, but there are known limitations due to
      the diynamic nature of Python and developer tooling. These changes should
      not produce any dangerous runtime changes, but may require touch-ups to
      satisfy linters and other tooling.
      
      Note that µsort uses case-insensitive, lexicographical sorting, which
      results in a different ordering compared to isort. This provides a more
      consistent sorting order, matching the case-insensitive order used when
      sorting import statements by module name, and ensures that "frog", "FROG",
      and "Frog" always sort next to each other.
      
      For details on µsort's sorting and merging semantics, see the user guide:
      https://usort.readthedocs.io/en/stable/guide.html#sorting
      
      Reviewed By: bottler
      
      Differential Revision: D35553814
      
      fbshipit-source-id: be49bdb6a4c25264ff8d4db3a601f18736d17be1
      34bbb3ad