- Install Fast Geodis with pip install FastGeodis --no-build-isolation
- Install PyTorch3d with CUDA support.
- Install PyTorch Scatter with CUDA support.
- Setup directory for extracting the data, visuals and experimental results '''console BASE_PATH='path_where_to_store_data' '''
- Download Data and unpack it to the folder $BASE_PATH/
tar -xvf data_sceneflow.tgz $BASE_PATH/data/sceneflow
The data consist of *.npz files, where inside key names corresponds to:
- 'pc1' : xyz points in time t
- 'pc2' : xyz points in time t+1
- 'pose1' : Pose Transformation from t to t+1
After installation of the package and setting up the data, you can run:
python optimize_frame.py *path_to_frame*
The script will compute Flows, dynamic mask per-point, instances by DBSCAN from geometry and motion features and pose estimation in output:
Clusters: (136898,) ---> [int ids]
Dynamic points: torch.Size([136898]) ---> [binary mask]
Flow: torch.Size([136898, 3]) ---> [float per-point flows]
Pose: torch.Size([4, 4]) ---> [odometry matrix]
where you can look at the and of the script for format and save the output to your desired location.