You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,8 +88,25 @@ If you need research-grade markerless joint kinematics, consider using several c
88
88
cd sports2d
89
89
pip install .
90
90
```
91
+
- **Optional**\
92
+
*For faster inference, you can run on the GPU. Install pyTorch with CUDA and cuDNN support, and ONNX Runtime with GPU support (not available on MacOS).*\
93
+
Be aware that GPU support takes an additional 6 GB on disk.
94
+
95
+
Go to the [ONNXruntime requirement page](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), check the latest CUDA and cuDNN requirements. Then go to the [pyTorch website]( https://pytorch.org/get-started/locally) and install the latest version that satisfies these requirements (beware that torch 2.4 ships with cuDNN 9, while torch 2.3 installs cuDNN 8). For example:
overwrite_pose = false# If false, don't run openpose again if json pose files are found.
36
+
[pose_advanced]
37
+
webcam_id = 0# your webcam id (0 is default)
38
+
input_size = [1980, 1080] # 'auto' or [W, H]. Full image resolution: 'auto'. Custom resolution: list of two integers. Lower resolution will be faster but less precise.
39
+
overwrite_pose = true# If false, don't run openpose again if json pose files are found.
40
+
det_frequency = 1# detect person every det_frequency (1 = 1 frame)
keypoints_threshold = 0.5#If only part of a person is on screen, increase this number to ensure that only correctly detected keypoints are used.
43
+
min_detection_time = 1# If lower than this, person will be ignored(sec)
44
+
#For webcams, it is possible to detect the wrong person if the person is only partially detected (usually less than a second).
56
45
save_vid = true
57
46
save_img = true
58
47
interp_gap_smaller_than = 5# do not interpolate bigger gaps
59
48
filter = true
60
-
show_plots = false
49
+
show_plots = true
61
50
filter_type = 'butterworth'# butterworth, gaussian, LOESS, median
62
51
[pose_advanced.butterworth]
63
52
order = 4
64
-
cut_off_frequency = 6# Hz
53
+
cut_off_frequency = 3# Hz
65
54
[pose_advanced.gaussian]
66
55
sigma_kernel = 1#px
67
56
[pose_advanced.loess]
68
57
nb_values_used = 5# = fraction of data used * nb frames
69
58
[pose_advanced.median]
70
59
kernel_size = 3
71
60
72
-
73
-
[compute_angles_advanced] # for OPENPOSE and BLAZEPOSE
61
+
[compute_angles_advanced]
74
62
show_angles_on_img = true
75
63
show_angles_on_vid = true
76
-
filter = false
77
-
show_plots = false
64
+
filter = true
65
+
show_plots = true
78
66
flip_left_right = true# Same angles whether the participant faces left/right. Set it to false if you want timeseries to be continuous even when the participent switches their stance.
79
67
filter_type = 'butterworth'# butterworth, gaussian, LOESS, median
0 commit comments