Download EgoHOS/raw/script/mmsegmentation/pred_all_obj2.sh from ParityLab/Hand-Datasets-Raw: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/datasets/ParityLab/Hand-Datasets-Raw/resolve/main/EgoHOS/raw/script/mmsegmentation/pred_all_obj2.sh
- Command line
-
hf download hf://datasets/ParityLab/Hand-Datasets-Raw/EgoHOS/raw/script/mmsegmentation/pred_all_obj2.sh
-
curl -L -o pred_all_obj2.sh https://huggingface.co/datasets/ParityLab/Hand-Datasets-Raw/resolve/main/EgoHOS/raw/script/mmsegmentation/pred_all_obj2.sh
1.45 kB
| # inference | |
| python predict_image.py \ | |
| --config_file ./work_dirs/seg_twohands_ccda/seg_twohands_ccda.py \ | |
| --checkpoint_file ./work_dirs/seg_twohands_ccda/best_mIoU_iter_56000.pth \ | |
| --img_dir ../testimages/images \ | |
| --pred_seg_dir ../testimages/pred_twohands \ | |
| python predict_image.py \ | |
| --config_file ./work_dirs/twohands_to_cb_ccda/twohands_to_cb_ccda.py \ | |
| --checkpoint_file ./work_dirs/twohands_to_cb_ccda/best_mIoU_iter_76000.pth \ | |
| --img_dir ../testimages/images \ | |
| --pred_seg_dir ../testimages/pred_cb | |
| python predict_image.py \ | |
| --config_file ./work_dirs/twohands_cb_to_obj2_ccda/twohands_cb_to_obj2_ccda.py \ | |
| --checkpoint_file ./work_dirs/twohands_cb_to_obj2_ccda/best_mIoU_iter_32000.pth \ | |
| --img_dir ../testimages/images \ | |
| --pred_seg_dir ../testimages/pred_obj2 | |
| # visualize | |
| python visualize.py \ | |
| --mode twohands \ | |
| --img_dir ../testimages/images \ | |
| --twohands_dir ../testimages/pred_twohands \ | |
| --vis_dir ../testimages/pred_twohands_vis | |
| python visualize.py \ | |
| --mode cb \ | |
| --img_dir ../testimages/images \ | |
| --cb_dir ../testimages/pred_cb \ | |
| --vis_dir ../testimages/pred_cb_vis | |
| python visualize.py \ | |
| --mode twohands_obj2 \ | |
| --img_dir ../testimages/images \ | |
| --twohands_dir ../testimages/pred_twohands \ | |
| --obj2_dir ../testimages/pred_obj2 \ | |
| --vis_dir ../testimages/pred_obj2_vis | |