1. 03 Nov, 2020 1 commit
    • Christoph Lassner's avatar
      pulsar integration. · b19fe1de
      Christoph Lassner authored
      Summary:
      This diff integrates the pulsar renderer source code into PyTorch3D as an alternative backend for the PyTorch3D point renderer. This diff is the first of a series of three diffs to complete that migration and focuses on the packaging and integration of the source code.
      
      For more information about the pulsar backend, see the release notes and the paper (https://arxiv.org/abs/2004.07484). For information on how to use the backend, see the point cloud rendering notebook and the examples in the folder `docs/examples`.
      
      Tasks addressed in the following diffs:
      * Add the PyTorch3D interface,
      * Add notebook examples and documentation (or adapt the existing ones to feature both interfaces).
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D23947736
      
      fbshipit-source-id: a5e77b53e6750334db22aefa89b4c079cda1b443
      b19fe1de
  2. 29 Oct, 2020 1 commit
    • Jeremy Reizenstein's avatar
      import vis parts separately · fdcf3687
      Jeremy Reizenstein authored
      Summary: We envision `pytorch3d.vis` to contain submodules with different dependencies. Allow (and require) them to be imported independently.
      
      Reviewed By: theschnitz
      
      Differential Revision: D24622519
      
      fbshipit-source-id: 44840f70f5fd2bd410405bf09546024e48238744
      fdcf3687
  3. 27 Oct, 2020 1 commit
    • Jeremy Reizenstein's avatar
      images for debugging TexturesUV · aa4cc0ad
      Jeremy Reizenstein authored
      Summary: New methods to directly plot a TexturesUV map with its used points, using PIL and matplotlib.
      
      Reviewed By: gkioxari
      
      Differential Revision: D23782968
      
      fbshipit-source-id: 692970857b5be13a35a3175dc82ac03963a73555
      aa4cc0ad
  4. 21 Oct, 2020 2 commits
    • Amitav Baruah's avatar
      Add wrapper function to plot batches · bf7aca32
      Amitav Baruah authored
      Summary:
      - adds plot_batch_individually
      - for each batched object, plots each object in its own subplot with other same-indexed elements of the other batched objects provided as input
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24258389
      
      fbshipit-source-id: a80128e6e7a03a44c257b0598569159afadb2d39
      bf7aca32
    • Amitav Baruah's avatar
      Refactor plot_meshes and plot_pointclouds to one generalizable API, plot_scene · 964893cd
      Amitav Baruah authored
      Summary: Defines a function plot_scene that takes in a dictionary defining subplot and trace layouts for Mesh/Pointcloud objects and plots them. Also supports other plotly axis arguments and mesh lighting. Plot_batch_individually is a wrapper function that takes in one or multiple batched Meshes/Pointclouds and uses plot_scene to plot each element within a batch in an individual subplot, possibly sharing that subplot with traces of other individual elements of the other batched structures passed in.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24235479
      
      fbshipit-source-id: 9f669f1b186d55fe5c75552083316c0cf1387472
      964893cd
  5. 06 Oct, 2020 1 commit
    • Amitav Baruah's avatar
      Rename visualization to vis · 5d65a0cf
      Amitav Baruah authored
      Summary: Importing from pytorch3d.visualization is wordy, so shortened the path to the vis module and updated the relevant imports.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D24116527
      
      fbshipit-source-id: e0e4da7d48c5afedec07482d7be43362b6822445
      5d65a0cf
  6. 01 Oct, 2020 2 commits
    • Amitav Baruah's avatar
      Plotly figure for visualizing pointclouds · 8f1e9e1f
      Amitav Baruah authored
      Summary:
      Visualize a pointcloud in plotly.
      - customize lighting and light position
      - customizable axis arguments
      - customizable height and width of plotly figure
      - render batches in subplots or the same plot
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D23872391
      
      fbshipit-source-id: 9b1e1fd417500521be9d0eb85d71c77a538fa77c
      8f1e9e1f
    • Amitav Baruah's avatar
      plotly figure for visualizing a mesh · 8b631035
      Amitav Baruah authored
      Summary:
      Visualize a mesh in a plotly figure.
      - customize lighting and light position
      - customizable axis arguments (x, y, z)
      - customizable height and width of plotly figure
      - render batches of meshes in subplots or in a singular plot
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D22611960
      
      fbshipit-source-id: 5dc5c55e599d5b0d9c38f22e156c662654099e11
      8b631035
  7. 14 Jul, 2020 1 commit
    • Luya Gao's avatar
      Adding renderer for ShapeNetBase · 358e211c
      Luya Gao authored
      Summary: Adding a renderer to ShapeNetCore (Note that the lights are currently turned off for the test; will investigate why lighting causes instability in rendering)
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D22102673
      
      fbshipit-source-id: a704756a1e93b61d5a879f0e5ee14ebcb0df49d7
      358e211c
  8. 18 Jun, 2020 1 commit
    • Luya Gao's avatar
      Adding support for selecting categories and ver2 for ShapeNetCore · 2ea6a7d8
      Luya Gao authored
      Summary: Adding support so that users can select which categories they would like to load with wordnet synset offsets or labels or a combination of both. ShapeNetCore now also supports loading v2.
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D22039207
      
      fbshipit-source-id: 1f0218acb790e5561e2ae373e99cebb9823eea1a
      2ea6a7d8
  9. 29 Mar, 2020 1 commit
    • Patrick Labatut's avatar
      Address black + isort fbsource linter warnings · d57daa6f
      Patrick Labatut authored
      Summary: Address black + isort fbsource linter warnings from D20558374 (previous diff)
      
      Reviewed By: nikhilaravi
      
      Differential Revision: D20558373
      
      fbshipit-source-id: d3607de4a01fb24c0d5269634563a7914bddf1c8
      d57daa6f
  10. 13 Mar, 2020 1 commit
    • Patrick Labatut's avatar
      Add utility function to tesselate a torus · 327868b8
      Patrick Labatut authored
      Summary: Add utility function to tesselate a torus, to be used in more complex mesh I/O benchmarks
      
      Reviewed By: bottler
      
      Differential Revision: D20390724
      
      fbshipit-source-id: 882bbbe9cac81cf340a34495b9aa66e3c1ddeebc
      327868b8
  11. 23 Jan, 2020 1 commit