Download the dataset from link and place it in the dataset directory, so that the full path to the dataset is dataset/3DAVS-S34-O7.
bash ./src/avs_3d/scripts/train_gaussian_splatting_dataset.sh ./dataset/3DAVS-S34-O7The above command can be run on multiple GPUs (if available) to speed up the process. Modify the following line inside ./src/avs_3d/scripts/train_gaussian_splatting_dataset.sh:
for gpu in 0; doto
for gpu in 0 1; doThe trained Audio-Informed 3D Gaussian Splatting models will be saved to dataset/3DAVS-S34-O7/<part>/<room>/<idx>/3dgs_scene.
python ./src/avs_3d/run_owodbind.py --root_dir ./dataset/3DAVS-S34-O7 --config ./src/avs_3d/echosegnet/configs/owod_bind_config.yamlThe 2D masks of sound-emitting objects will be saved in the scene directory dataset/3DAVS-S34-O7/<part>/<room>/<idx>/owob_bind_train_frames.
The script below will run for each scene, both with and without AISRM. It also automatically computes F-Score and mIoU for each scene, however, the aggregation should be done as described in the next step.
bash ./src/avs_3d/scripts/run_lifting_aisrm_dataset.sh ./dataset/3DAVS-S34-O7The above command can be run on multiple GPUs (if available) to speed up the process. Modify the following line inside ./src/avs_3d/scripts/run_lifting_aisrm_dataset.sh:
for gpu in 0; doto
for gpu in 0 1; doPredicted 3D segmented point clouds will be saved to dataset/3DAVS-S34-O7/<part>/<room>/<idx>/3dgs_scene and rendered 2D segmentation masks will be saved to dataset/3DAVS-S34-O7/<part>/<room>/<idx>/echosegnet_output.
Aggregate the final quantitative metrics for the dataset (e.g., mIoU, F-Score).
# Single-instance setting, without AISRM
python ./src/avs_3d/aggregate_metrics.py --root ./dataset/3DAVS-S34-O7 --part 1 --mode "no_aisrm"# Single-instance setting, with AISRM
python ./src/avs_3d/aggregate_metrics.py --root ./dataset/3DAVS-S34-O7 --part 1 --mode "aisrm"# Multi-instance setting, without AISRM
python ./src/avs_3d/aggregate_metrics.py --root ./dataset/3DAVS-S34-O7 --part 2 --mode "no_aisrm"# Multi-instance setting, with AISRM
python ./src/avs_3d/aggregate_metrics.py --root ./dataset/3DAVS-S34-O7 --part 2 --mode "aisrm"