X Tutup
Skip to content

Latest commit

 

History

History

README.md

ScanNet Benchmark Scripts

We provide scripts for evaluation of the tasks in the ScanNet benchmark, as well as some helper scripts which prepare and visualize data.

These scripts have been developed and tested with Python 2.7.

Evaluation Scripts

The evaluation for both 2D and 3D semantic label and instance segmentation tasks are adapted from the CityScapes evaluation, and provided in 2d_evaluation and 3d_evaluation, respectively. The evaluation for the scene type classification task is provided in scene_type_evaluation.

Note that visualization and data preparation scripts for semantic instance and label prediction depend on the ScanNet label mapping file scannetv2-labels.combined.tsv to convert labels into the NYUv2 40-label set, which we use for evaluation.

Please see the benchmark evaluation documentation for more information about evaluation data formats and label sets.

Helper Scripts

  • 2D:

    • 2d_helpers contains helper scripts for converting ScanNet label images (*_2d-label.zip, *_2d-label-filt.zip) to the NYUv2 40-label set as 8-bit pngs, as well as converting ScanNet instance images (*_2d-instance.zip, *_2d-instance-filt.zip) to 16-bit pngs containing [NYUv2 40-label]*1000+instance_id. An already pre-processed subset of approximately 25,000 frames is available to download with the ScanNet download.
    • util.visualize_label_image and util.visualize_instace_image can be used to visualize these processed label and instance images (assumes NYUv2 40 labels).
  • 3D:

    • 3d_helpers contains helper scripts for exporting a train scan into the 3D evaluation format for semantic instance and label segmentation.
    • 3d_helpers/visualize_labels_on_mesh can be used to visualize semantic labels on a mesh (assumes NYUv2 40 labels).
  • Scene Types:

    • scene_type_helpers/get_scene_type_for_scan can be used to get the scene type id from the info <scanId>.txt file for a scan in the ScanNet release.
X Tutup