File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ mmsegmentation
1919│ │ ├── val_set
2020│ │ │ ├── images
2121│ │ │ ├── annotations
22- │ | ├── train_list.txt
23- │ │ ├── val_list.txt
22+ │ | |
2423
2524```
2625
Original file line number Diff line number Diff line change 11## Inference with pretrained models
22
3- The testing script 'arch_segmentation.py' is in folder demo. We can run the following commands to obtain the arch boundary in a color image.
3+ The testing script 'arch_segmentation.py' is in the folder demo. We can run the following commands to obtain the arch boundary in a color image.
44
55``` shell
66python demo/arch_segmentation.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --img-path ${INPUT_DIR} --show-dir ${OUTPUT_DIR}
@@ -23,9 +23,18 @@ Assume that you run the script in Windows system.
2323``` shell
2424python demo/arch_segmentation.py C:/Users/zliu/Projects/configs/mmseg_configs/models/point_rend_r101_512x512_160k_feetarch5k.py \
2525 C:/Users/zliu/Projects/models/mmseg/arch_pointrend/iter_2000.pth \
26- --img-path C:/Users/zliu/Projects/foot_imgs/val_set/images
27- --show-dir C:/Users/zliu/Projects/foot_imgs/show
28- --palette feetarch
29- --opacity 0.4
26+ --img-path C:/Users/zliu/Projects/foot_imgs/val_set/images \
27+ --show-dir C:/Users/zliu/Projects/foot_imgs/show \
28+ --palette feetarch \
29+ --opacity 0.4
3030```
3131
32+ Some segmentation results are shown below:
33+
34+ ![ arch1] ( ../../resources/feet_imgs/Ted_scan4_right_front_arch.png )
35+ ![ arch2] ( ../../resources/feet_imgs/Tony_R_scan2_right_back_arch.png )
36+ ![ arch3] ( ../../resources/feet_imgs/Wendy_scan4_right_front_arch.png )
37+ ![ arch3] ( ../../resources/feet_imgs/Whitney_scan3_left_back_arch.png )
38+ ![ arch3] ( ../../resources/feet_imgs/Yanina_scan2_left_back_arch.png )
39+
40+ A pickle file 'output.pkl' is generated in the folder ${OUTPUT_DIR}, which contains the list of numpy 2d array, each encoding the arch boundary.
You can’t perform that action at this time.
0 commit comments