### Evaluate PVCNN on S3DIS Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md Example command to evaluate PVCNN on GPU 0 and 1 for S3DIS Area 5, using 4096 points. Ensure the correct configuration file and checkpoint path are provided. ```bash python train.py configs/s3dis/pvcnn/area5.py --devices 0,1 --evaluate --configs.evaluate.best_checkpoint_path s3dis.pvcnn.area5.c1.pth.tar ``` -------------------------------- ### General Model Training Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md General command to train a model using a specified configuration file and GPU IDs. This is the standard procedure for initiating training. ```bash python train.py [config-file] --devices [gpu-ids] ``` -------------------------------- ### KITTI Dataset Preparation Script Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md This sequence of bash commands prepares the KITTI dataset. It involves unzipping ground truth labels, moving them to the correct directory, and then downloading additional data. ```bash unzip data_object_label_2.zip mv training/label_2 data/kitti/ground_truth ./data/kitti/frustum/download.sh ``` -------------------------------- ### Test Pretrained Models Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md Use this command to test downloaded pretrained models on S3DIS. Specify the configuration file, devices, and the path to the model checkpoint. ```bash python train.py [config-file] --devices [gpu-ids] --evaluate --configs.evaluate.best_checkpoint_path [path to the model checkpoint] ``` -------------------------------- ### S3DIS Data Preparation Script Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md This bash command prepares the S3DIS dataset by running a Python script. Ensure the dataset is downloaded and unzipped first, and provide the path to the unzipped directory. ```bash python data/s3dis/prepare_data.py -d [path to unzipped dataset dir] ``` -------------------------------- ### ShapeNet Dataset Download Script Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md This bash command downloads the ShapeNet dataset. It is a straightforward script to acquire the necessary data for training or evaluation. ```bash ./data/shapenet/download.sh ``` -------------------------------- ### Frustum KITTI Evaluation with Multiple Measurements Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md Command for Frustum KITTI evaluation that specifies the number of measurements to average, mitigating random seed effects. Adjust the number of tests as needed. ```bash python train.py configs/kitti/frustum/pvcnne.py --devices 0 --evaluate --configs.evaluate.best_checkpoint_path kitti.frustum.pvcnne.pth.tar --configs.evaluate.num_tests [#measurements] ``` -------------------------------- ### Train PVCNN on S3DIS (Holdout Area 5) Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md Command to train PVCNN on the S3DIS dataset, specifically holding out Area 5. This command initiates the training process with the specified configuration. ```bash python train.py configs/s3dis/pvcnn/area5/c1.py --devices 0,1 ``` -------------------------------- ### Evaluate Trained Models Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md Command to perform inference and evaluate trained models. This command is used after training to assess the model's performance. ```bash python train.py [config-file] --devices [gpu-ids] --evaluate ``` -------------------------------- ### PVCNN Core Implementation Snippet Source: https://github.com/mit-han-lab/pvcnn/blob/master/README.md This snippet illustrates the core idea of PVCNN implementation, involving voxelization, voxel layer processing, trilinear devoxelization, and feature fusion. It's a concise representation of the network's key operations. ```python voxel_features, voxel_coords = voxelize(features, coords) voxel_features = voxel_layers(voxel_features) voxel_features = trilinear_devoxelize(voxel_features, voxel_coords, resolution) fused_features = voxel_features + point_layers(features) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.