Commit c25fd836 authored by Nikhila Ravi's avatar Nikhila Ravi Committed by Facebook GitHub Bot
Browse files

small website updates

Summary: Small fixes to website rendering

Reviewed By: jcjohnson

Differential Revision: D23281746

fbshipit-source-id: c9dc8edd5e52f39d4e0e19f10ecc7e035b39feda
parent 9aeb88b4
---
hide_title: true
sidebar_label: Cameras
---
# Cameras # Cameras
## Camera Coordinate Systems ## Camera Coordinate Systems
......
---
hide_title: true
sidebar_label: Cubify
---
# Cubify # Cubify
The [cubify operator](https://github.com/facebookresearch/pytorch3d/blob/master/pytorch3d/ops/cubify.py) converts an 3D occupancy grid of shape `BxDxHxW`, where `B` is the batch size, into a mesh instantiated as a [Meshes](https://github.com/facebookresearch/pytorch3d/blob/master/pytorch3d/structures/meshes.py) data structure of `B` elements. The operator replaces every occupied voxel (if its occupancy probability is greater than a user defined threshold) with a cuboid of 12 faces and 8 vertices. Shared vertices are merged, and internal faces are removed resulting in a **watertight** mesh. The [cubify operator](https://github.com/facebookresearch/pytorch3d/blob/master/pytorch3d/ops/cubify.py) converts an 3D occupancy grid of shape `BxDxHxW`, where `B` is the batch size, into a mesh instantiated as a [Meshes](https://github.com/facebookresearch/pytorch3d/blob/master/pytorch3d/structures/meshes.py) data structure of `B` elements. The operator replaces every occupied voxel (if its occupancy probability is greater than a user defined threshold) with a cuboid of 12 faces and 8 vertices. Shared vertices are merged, and internal faces are removed resulting in a **watertight** mesh.
......
---
hide_title: true
sidebar_label: Data loaders
---
# Data loaders for common 3D Datasets # Data loaders for common 3D Datasets
### ShapetNetCore ### ShapetNetCore
......
...@@ -41,7 +41,7 @@ Rendering requires transformations between several different coordinate frames: ...@@ -41,7 +41,7 @@ Rendering requires transformations between several different coordinate frames:
For example, given a teapot mesh, the world coordinate frame, camera coordiante frame and image are show in the figure below. Note that the world and camera coordinate frames have the +z direction pointing in to the page. For example, given a teapot mesh, the world coordinate frame, camera coordiante frame and image are show in the figure below. Note that the world and camera coordinate frames have the +z direction pointing in to the page.
<img src="assets/world_camera_image.png" width="1000"> <img src="assets/world_camera_image.jpg" width="1000">
--- ---
......
...@@ -131,10 +131,7 @@ loss_chamfer, _ = chamfer_distance(sample_sphere, sample_test) ...@@ -131,10 +131,7 @@ loss_chamfer, _ = chamfer_distance(sample_sphere, sample_test)
<Container> <Container>
<ol> <ol>
<li> <li>
<strong>Install PyTorch3D:</strong> <strong>Install PyTorch3D </strong> (following the instructions <a href="https://github.com/facebookresearch/pytorch3d/blob/master/INSTALL.md">here</a>)
<p>See the instructions
<a href="https://github.com/facebookresearch/pytorch3d/blob/master/INSTALL.md">here</a>.
</p>
</li> </li>
<li> <li>
<strong>Try a few 3D operators </strong> <strong>Try a few 3D operators </strong>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment