kaolin.visualize

API

class kaolin.visualize.Timelapse(log_dir, up_axis='Y')

Bases: object

add_mesh_batch(iteration=0, category='', vertices_list=None, faces_list=None, uvs_list=None, face_uvs_idx_list=None, face_normals_list=None, materials_list=None)

Add meshes to visualizer output.

Parameters:
  • iteration (int) – Positive integer identifying the iteration the supplied meshes belong to.
  • category (str, optional) – Batch name.
  • vertices_list (list of tensors, optional) – Vertices for N meshes of shape (num_vertices, 3).
  • faces_list (list of tensors, optional) – Faces for N meshes of shape (num_faces, face_size).
  • uvs_list (list of tensors, optional) – UV coordinates for N meshes of shape (num_uvs, 2).
  • face_uvs_idx_list (list of tensors, optional) – Index of UV coordinates for N meshes of shape (num_faces, face_size).
  • face_normals_list (list of tensors, optional) – Face normals for N meshes of shape (num_faces, face_size, 3).
  • materials_list (list, optional) – List of materials for N meshes. For each mesh, if a list of io.Materials is supplied, each material is applied to the mesh as a ShadingVariant. A name for each material can be defined by supplying a dictionary in the form of {‘material_name’: material}.
add_pointcloud_batch(iteration=0, category='', pointcloud_list=None, colors=None, semantic_ids=None)

Add pointclouds to visualizer output.

Parameters:
  • iteration (int) – Positive integer identifying the iteration the supplied pointclouds belong to.
  • pointcloud_list (list of tensors, optional) – Batch of points of length N defining N pointclouds.
  • colors (list of tensors, optional) – Batch of RGB colors of length N.
  • semantic_ids (list of int, optional) – Batch of semantic IDs.
add_voxelgrid_batch(iteration=0, category='', voxelgrid_list=None, colors=None, semantic_ids=None)

Add voxelgrids to visualizer output.

Parameters:
  • iteration (int) – Positive integer identifying the iteration the supplied voxelgrids belong to.
  • category (str, optional) – Batch name.
  • voxelgrid_list (list of tensors, optional) – Batch of points of length N defining N pointclouds.
  • colors (list of tensors, optional) – Batch of RGB colors of length N.
  • semantic_ids (list of int, optional) – Batch of semantic IDs.