1. 25 May, 2022 4 commits
    • Jeremy Reizenstein's avatar
      further test fix · f625fe1f
      Jeremy Reizenstein authored
      Summary: test_viewpool was inactive so missed being fixed in D36547815 (https://github.com/facebookresearch/pytorch3d/commit/2d1c6d5d9382651bbf825f5f1677d576305d1f92)
      
      Reviewed By: kjchalup
      
      Differential Revision: D36625587
      
      fbshipit-source-id: e7224eadfa5581fe61f10f67d2221071783de04a
      f625fe1f
    • Krzysztof Chalupka's avatar
      SplatterPhongShader Benchmarks · 7c25d34d
      Krzysztof Chalupka authored
      Summary:
      Benchmarking. We only use num_faces=2 for splatter, because as far as I can see one would never need to use more. Pose optimization and mesh optimization experiments (see next two diffs) showed that Splatter with 2 faces beats Softmax with 50 and 100 faces in terms of accuracy.
      
      Results: We're slower at 64px^2. At 128px and 256px, we're slower than Softmax+50faces, but faster than Softmax+100faces. We're also slower at 10 faces/pix, but expectation as well as results show that more then 2 faces shouldn't be necessary. See also more results in .https://fburl.com/gdoc/ttv7u7hp
      
      Reviewed By: jcjohnson
      
      Differential Revision: D36210575
      
      fbshipit-source-id: c8de28c8a59ce5fe21a47263bd43d2757b15d123
      7c25d34d
    • Krzysztof Chalupka's avatar
      SplatterBlender · c5a83f46
      Krzysztof Chalupka authored
      Summary: Splatting shader. See code comments for details. Same API as SoftPhongShader.
      
      Reviewed By: jcjohnson
      
      Differential Revision: D36354301
      
      fbshipit-source-id: 71ee37f7ff6bb9ce028ba42a65741424a427a92d
      c5a83f46
    • Jeremy Reizenstein's avatar
      avoid warning in ndc_grid_sample · 1702c85b
      Jeremy Reizenstein authored
      Summary: If you miss grid_sample in recent pytorch, it gives a warning, so stop doing this.
      
      Reviewed By: kjchalup
      
      Differential Revision: D36410619
      
      fbshipit-source-id: 41dd4455298645c926f4d96c2084093b3f64ee2c
      1702c85b
  2. 24 May, 2022 1 commit
    • Jeremy Reizenstein's avatar
      PLY heterogenous faces fix · 90d00f1b
      Jeremy Reizenstein authored
      Summary: PLY with mixture of triangle and quadrilateral faces was failing.
      
      Reviewed By: gkioxari
      
      Differential Revision: D36592981
      
      fbshipit-source-id: 5373edb2f38389ac646a75fd2e1fa7300eb8d054
      90d00f1b
  3. 22 May, 2022 1 commit
  4. 20 May, 2022 6 commits
    • Jeremy Reizenstein's avatar
      simplify image_feature_extractor control · 2d1c6d5d
      Jeremy Reizenstein authored
      Summary: If no view pooling, don't disable image_feature_extractor. Make image_feature_extractor default to absent.
      
      Reviewed By: davnov134
      
      Differential Revision: D36547815
      
      fbshipit-source-id: e51718e1bcbf65b8b365a6e894d4324f136635e9
      2d1c6d5d
    • Jeremy Reizenstein's avatar
      ImplicitronDatasetBase -> DatasetBase · 9fe15da3
      Jeremy Reizenstein authored
      Summary: Just a rename
      
      Reviewed By: shapovalov
      
      Differential Revision: D36516885
      
      fbshipit-source-id: 2126e3aee26d89a95afdb31e06942d61cbe88d5a
      9fe15da3
    • Jeremy Reizenstein's avatar
      data_loader_map_provider · 0f12c516
      Jeremy Reizenstein authored
      Summary: replace dataloader_zoo with a pluggable DataLoaderMapProvider.
      
      Reviewed By: shapovalov
      
      Differential Revision: D36475441
      
      fbshipit-source-id: d16abb190d876940434329928f2e3f2794a25416
      0f12c516
    • Jeremy Reizenstein's avatar
      dataset_map_provider · 79c61a2d
      Jeremy Reizenstein authored
      Summary: replace dataset_zoo with a pluggable DatasetMapProvider. The logic is now in annotated_file_dataset_map_provider.
      
      Reviewed By: shapovalov
      
      Differential Revision: D36443965
      
      fbshipit-source-id: 9087649802810055e150b2fbfcc3c197a761f28a
      79c61a2d
    • Jeremy Reizenstein's avatar
      New file for ImplicitronDatasetBase · 69c6d06e
      Jeremy Reizenstein authored
      Summary: Separate ImplicitronDatasetBase and FrameData (to be used by all data sources) from ImplicitronDataset (which is specific).
      
      Reviewed By: shapovalov
      
      Differential Revision: D36413111
      
      fbshipit-source-id: 3725744cde2e08baa11aff4048237ba10c7efbc6
      69c6d06e
    • Jeremy Reizenstein's avatar
      data_source · 73dc109d
      Jeremy Reizenstein authored
      Summary:
      Move dataset_args and dataloader_args from ExperimentConfig into a new member called datasource so that it can contain replaceables.
      
      Also add enum Task for task type.
      
      Reviewed By: shapovalov
      
      Differential Revision: D36201719
      
      fbshipit-source-id: 47d6967bfea3b7b146b6bbd1572e0457c9365871
      73dc109d
  5. 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
  6. 17 May, 2022 6 commits
  7. 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
  8. 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
  9. 13 May, 2022 3 commits
  10. 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
  11. 11 May, 2022 2 commits
  12. 10 May, 2022 1 commit
  13. 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
  14. 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