PyTorch3D

PyTorch3D

  • Docs
  • Tutorials
  • API
  • GitHub

›Ops

Introduction

  • Why PyTorch3D

Data

  • File IO
  • Loading from file
  • Data loaders
  • Batching

Ops

  • Cubify
  • IoU3D

Visualization

  • Plotly Visualization

Renderer

  • Overview
  • Getting Started
  • Cameras

Cubify

The cubify operator converts an 3D occupancy grid of shape BxDxHxW, where B is the batch size, into a mesh instantiated as a Meshes 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 operator provides three alignment modes {topleft, corner, center} which define the span of the mesh vertices with respect to the voxel grid. The alignment modes are described in the figure below for a 2D grid.

input

Last updated by Jeremy Reizenstein
← BatchingIoU3D →
pytorch3d
Facebook Open Source
Copyright © 2022 Meta Platforms, Inc
Legal:PrivacyTerms