Skip to content

PKU-VCL-3DV/shared-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

shared-scripts

Commonly used scripts to share.

Visualization

visualize.py can be used to quickly visualize mesh, point cloud, voxel, part box assembly and save rendered image if specified. Both one object or a directory or objects is supported.

python visualize.py --format {file format} --src {object path or directory to visualize} --save_image[optional]

Mesh is visualized by trimesh, point cloud by open3d and voxel/box by matplotlib.

Loss and Evaluation

loss-and-evaluation provides code for some distance metrics.

IoU

  • iou.py provides functions to calculate IoU for binary arrays or axis-aligned bounding boxes. Implemented in numpy but should be easy converted to pytorch or tensorflow.

Chamfer Distance

EMD Distance

Hausdorff Distance

  • directed_hausdorff.py provides pytorch implementation for directed hausdorff distance.
  • Tensorflow implementation can be found here.

Light Field Distance

  • pending...

Releases

No releases published

Packages

No packages published

Languages