-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrun.sh
15 lines (12 loc) · 993 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CONFIG=configs/cfg_PointSAM.py
SAMPLE_INDICES=scripts/indices_val.npy
OUT_DIR=PointSAM_val
# Firstly perform instance segmentation on 2D images
python scripts/segment2D.py ${CONFIG} --sample_indices ${SAMPLE_INDICES} --out_dir ${OUT_DIR}
# Then project to 3D point clouds and utilize Separability-Aware Refinement to generate instance segmentation masks
python scripts/segment3D.py ${CONFIG} --mask_root ${OUT_DIR} --sample_indices ${SAMPLE_INDICES} --out_dir ${OUT_DIR} --for_eval
# If not specify for_eval, the convert_results.py is needed
# python scripts/segment3D.py ${CONFIG} --mask_root ${OUT_DIR} --sample_indices ${SAMPLE_INDICES} --out_dir ${OUT_DIR}
# python scripts/convert_results.py --mode bin2npz --input ${OUT_DIR}/samples/ --output ${OUT_DIR}/panoptic/val/
python -m nuscenes.eval.panoptic.evaluate --result_path ${OUT_DIR} --eval_set val --dataroot data/nuscenes --version v1.0-trainval --out_dir ${OUT_DIR}
python scripts/parse_json.py ${OUT_DIR}/segmentation-result.json