File size: 1,450 Bytes
d84c647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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