forked from openpifpaf/openpifpaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli-help-webcam.txt
90 lines (84 loc) · 4.57 KB
/
cli-help-webcam.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
usage: webcam.py [-h] [--checkpoint CHECKPOINT] [--dilation DILATION]
[--dilation-end DILATION_END] [--basenet BASENET]
[--headnets HEADNETS [HEADNETS ...]] [--no-pretrain]
[--two-scale] [--head-dropout HEAD_DROPOUT]
[--head-quad HEAD_QUAD] [--head-kernel-size HEAD_KERNEL_SIZE]
[--head-padding HEAD_PADDING] [--head-dilation HEAD_DILATION]
[--seed-threshold SEED_THRESHOLD]
[--instance-threshold INSTANCE_THRESHOLD]
[--keypoint-threshold KEYPOINT_THRESHOLD]
[--decoder-workers DECODER_WORKERS] [--force-complete-pose]
[--debug-pif-indices DEBUG_PIF_INDICES [DEBUG_PIF_INDICES ...]]
[--debug-paf-indices DEBUG_PAF_INDICES [DEBUG_PAF_INDICES ...]]
[--debug-file-prefix DEBUG_FILE_PREFIX] [--profile-decoder]
[--fixed-b FIXED_B] [--pif-fixed-scale PIF_FIXED_SCALE]
[--paf-th PAF_TH] [--connection-method {median,max}]
[--no-colored-connections] [--disable-cuda] [--source SOURCE]
[--scale SCALE]
Webcam demo application. Example commands: python3 -m pifpaf.webcam # usbcam
or webcam 0 python3 -m pifpaf.webcam --source=1 # usbcam or webcam 1 #
streaming source python3 -m pifpaf.webcam
--source=http://128.179.139.21:8080/video # file system source (any valid
OpenCV source) python3 -m pifpaf.webcam --source=docs/coco/000000081988.jpg
Trouble shooting: * MacOSX: try to prefix the command with
"MPLBACKEND=MACOSX".
optional arguments:
-h, --help show this help message and exit
--no-colored-connections
do not use colored connections to draw poses (default:
True)
--disable-cuda disable CUDA (default: False)
--source SOURCE OpenCV source url. Integer for webcams. Or ipwebcam
streams. (default: 0)
--scale SCALE input image scale factor (default: 0.1)
network configuration:
--checkpoint CHECKPOINT
Load a model from a checkpoint. Use "resnet50",
"resnet101" or "resnet152" for pretrained OpenPifPaf
models. (default: None)
--dilation DILATION apply atrous (default: None)
--dilation-end DILATION_END
apply atrous (default: None)
--basenet BASENET base network, e.g. resnet50block5 (default: None)
--headnets HEADNETS [HEADNETS ...]
head networks (default: ['pif', 'paf'])
--no-pretrain create model without ImageNet pretraining (default:
True)
--two-scale two scale (default: False)
head:
--head-dropout HEAD_DROPOUT
zeroing probability of feature in head input (default:
0.0)
--head-quad HEAD_QUAD
number of times to apply quad (subpixel conv) to heads
(default: 0)
--head-kernel-size HEAD_KERNEL_SIZE
--head-padding HEAD_PADDING
--head-dilation HEAD_DILATION
decoder configuration:
--seed-threshold SEED_THRESHOLD
minimum threshold for seeds (default: 0.5)
--instance-threshold INSTANCE_THRESHOLD
filter instances by score (default: 0.1)
--keypoint-threshold KEYPOINT_THRESHOLD
filter keypoints by score (default: None)
--decoder-workers DECODER_WORKERS
number of workers for pose decoding (default: None)
--force-complete-pose
--debug-pif-indices DEBUG_PIF_INDICES [DEBUG_PIF_INDICES ...]
indices of PIF fields to create debug plots for (group
with comma, e.g. "0,1 2" to create one plot with field
0 and 1 and another plot with field 2) (default: [])
--debug-paf-indices DEBUG_PAF_INDICES [DEBUG_PAF_INDICES ...]
indices of PAF fields to create debug plots for (same
grouping behavior as debug-pif-indices) (default: [])
--debug-file-prefix DEBUG_FILE_PREFIX
save debug plots with this prefix (default: None)
--profile-decoder profile decoder (default: None)
PifPaf decoder:
--fixed-b FIXED_B overwrite b with fixed value, e.g. 0.5 (default: None)
--pif-fixed-scale PIF_FIXED_SCALE
overwrite pif scale with a fixed value (default: None)
--paf-th PAF_TH paf threshold (default: 0.1)
--connection-method {median,max}
connection method to use, max is faster (default: max)