From 5d65a0cf8c9a1fb755fd09ce098bcedb0c670d80 Mon Sep 17 00:00:00 2001 From: Amitav Baruah Date: Tue, 6 Oct 2020 15:53:45 -0700 Subject: [PATCH] Rename visualization to vis 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 --- docs/notes/visualization.md | 2 +- docs/tutorials/render_colored_points.ipynb | 2 +- docs/tutorials/render_textured_meshes.ipynb | 2 +- pytorch3d/{visualization => vis}/__init__.py | 0 pytorch3d/{visualization => vis}/plotly_vis.py | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename pytorch3d/{visualization => vis}/__init__.py (100%) rename pytorch3d/{visualization => vis}/plotly_vis.py (100%) diff --git a/docs/notes/visualization.md b/docs/notes/visualization.md index daf090dd9..ec93cb885 100644 --- a/docs/notes/visualization.md +++ b/docs/notes/visualization.md @@ -5,7 +5,7 @@ sidebar_label: Plotly Visualization # Overview -PyTorch3D provides a modular differentiable renderer, but for instances where we want interactive plots or are not concerned with the differentiability of the rendering process, we provide [functions to render meshes and pointclouds in plotly](../../pytorch3d/visualization/plotly_vis.py). These plotly figures allow you to rotate and zoom the rendered images and support plotting batched data as multiple traces in a singular plot or divided into individual subplots. +PyTorch3D provides a modular differentiable renderer, but for instances where we want interactive plots or are not concerned with the differentiability of the rendering process, we provide [functions to render meshes and pointclouds in plotly](../../pytorch3d/vis/plotly_vis.py). These plotly figures allow you to rotate and zoom the rendered images and support plotting batched data as multiple traces in a singular plot or divided into individual subplots. # Examples diff --git a/docs/tutorials/render_colored_points.ipynb b/docs/tutorials/render_colored_points.ipynb index 8eaa939f2..c68691956 100644 --- a/docs/tutorials/render_colored_points.ipynb +++ b/docs/tutorials/render_colored_points.ipynb @@ -67,7 +67,7 @@ "\n", "# Data structures and functions for rendering\n", "from pytorch3d.structures import Pointclouds\n", - "from pytorch3d.visualization import AxisArgs, plot_pointclouds\n", + "from pytorch3d.vis import AxisArgs, plot_pointclouds\n", "from pytorch3d.renderer import (\n", " look_at_view_transform,\n", " FoVOrthographicCameras, \n", diff --git a/docs/tutorials/render_textured_meshes.ipynb b/docs/tutorials/render_textured_meshes.ipynb index 678a37df0..01a9433c5 100644 --- a/docs/tutorials/render_textured_meshes.ipynb +++ b/docs/tutorials/render_textured_meshes.ipynb @@ -93,7 +93,7 @@ "\n", "# Data structures and functions for rendering\n", "from pytorch3d.structures import Meshes\n", - "from pytorch3d.visualization import AxisArgs, plot_meshes\n", + "from pytorch3d.vis import AxisArgs, plot_meshes\n", "from pytorch3d.renderer import (\n", " look_at_view_transform,\n", " FoVPerspectiveCameras, \n", diff --git a/pytorch3d/visualization/__init__.py b/pytorch3d/vis/__init__.py similarity index 100% rename from pytorch3d/visualization/__init__.py rename to pytorch3d/vis/__init__.py diff --git a/pytorch3d/visualization/plotly_vis.py b/pytorch3d/vis/plotly_vis.py similarity index 100% rename from pytorch3d/visualization/plotly_vis.py rename to pytorch3d/vis/plotly_vis.py