forked from open-mmlab/mmaction2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.txt
30 lines (25 loc) · 1.44 KB
/
demo.txt
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
python demo/demo.py configs/recognition/tsm/tsm_r50_1x1x8_50e_customdataset_run_rgb.py \
work_dirs/tsm_r50_1x1x8_100e_customdataset_run_rgb/latest.pth \
data/jhmdb/Frames/run/American_History_X_run_f_cm_np1_le_med_17/ \
demo/label_map_jhmdb_run.txt --use-frames
python demo/demo_spatiotemporal_det.py --video demo/demo.mp4 \
--config configs/detection/ava/slowonly_kinetics_pretrained_r101_8x8x1_20e_ava_rgb.py \
--checkpoint weights/slowonly_kinetics_pretrained_r101_8x8x1_20e_ava_rgb_20201217-1c9b4117.pth \
--det-config demo/faster_rcnn_r50_fpn_2x_coco.py
--det-checkpoint weights/faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth \
--det-score-thr 0.9 \ 检测阈值
--action-score-thr 0.5 \ 行为识别阈值
--label-map demo/label_map_ava.txt \ 行为识别标签
--predict-stepsize 8 \ 每隔8帧预测一帧
--output-stepsize 4 \
--output-fps 6
#使用图片
python demo_spatiotemporal_det_image.py \
--video ./tmp \
--config ../configs/detection/ava/slowonly_kinetics_pretrained_r101_8x8x1_20e_ava_rgb.py \
--checkpoint ../weights/slowonly_kinetics_pretrained_r101_8x8x1_20e_ava_rgb_20201217-1c9b4117.pth \
--det-config ../demo/faster_rcnn_r50_fpn_2x_coco.py \
--det-checkpoint ../weights/faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth \
--out-filename ../demo/stdet_demo.mp4 \
--det-score-thr 0.5 --action-score-thr 0.5 \
--label-map label_map_ava.txt --predict-stepsize 8 --output-stepsize 4 --output-fps 6