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
# More robust in crowded scenes but Can be tricky to parametrize. More information there: https://github.com/levan92/deep_sort_realtime/blob/master/deep_sort_realtime/deepsort_tracker.py#L51
88
88
# Note: For faster and more robust tracking, use {'embedder_gpu': True, embedder':'torchreid'}, which uses the GPU and runs osnet_ain_x1_0 by default. requires `pip install torch torchvision torchreid gdown tensorboard`
# # More robust in crowded scenes but Can be tricky to parametrize. More information there: https://github.com/levan92/deep_sort_realtime/blob/master/deep_sort_realtime/deepsort_tracker.py#L51
87
87
# # Note: For faster and more robust tracking, use {'embedder_gpu': True, embedder':'torchreid'}, which uses the GPU and runs osnet_ain_x1_0 by default. requires `pip install torch torchvision torchreid gdown tensorboard`
# # More robust in crowded scenes but Can be tricky to parametrize. More information there: https://github.com/levan92/deep_sort_realtime/blob/master/deep_sort_realtime/deepsort_tracker.py#L51
86
86
# # Note: For faster and more robust tracking, use {'embedder_gpu': True, embedder':'torchreid'}, which uses the GPU and runs osnet_ain_x1_0 by default. requires `pip install torch torchvision torchreid gdown tensorboard`
# More robust in crowded scenes but Can be tricky to parametrize. More information there: https://github.com/levan92/deep_sort_realtime/blob/master/deep_sort_realtime/deepsort_tracker.py#L51
87
87
# Note: For faster and more robust tracking, use {'embedder_gpu': True, embedder':'torchreid'}, which uses the GPU and runs osnet_ain_x1_0 by default. requires `pip install torch torchvision torchreid gdown tensorboard`
# More robust in crowded scenes but Can be tricky to parametrize. More information there: https://github.com/levan92/deep_sort_realtime/blob/master/deep_sort_realtime/deepsort_tracker.py#L51
88
88
# Note: For faster and more robust tracking, use {'embedder_gpu': True, embedder':'torchreid'}, which uses the GPU and runs osnet_ain_x1_0 by default. requires `pip install torch torchvision torchreid gdown tensorboard`
1.[Setting up your project](#setting-up-your-project)
77
78
2.[2D pose estimation](#2d-pose-estimation)
@@ -178,7 +179,7 @@ Type `ipython`, and try the following code:
178
179
from Pose2Sim import Pose2Sim
179
180
Pose2Sim.calibration()
180
181
Pose2Sim.poseEstimation()
181
-
Pose2Sim.synchronization()# When the GUI is prompted, make sure only RWrist point is selected
182
+
Pose2Sim.synchronization()
182
183
Pose2Sim.personAssociation()
183
184
Pose2Sim.triangulation()
184
185
Pose2Sim.filtering()
@@ -315,6 +316,44 @@ Run Pose2Sim from the `BatchSession` folder if you want to batch process the who
315
316
For example, try uncommenting `[project]` and set `frame_range = [10,99]`, or uncomment `[pose]` and set `mode = 'lightweight'` in the `Config.toml` file of `Trial_2`.
316
317
317
318
319
+
<br/>
320
+
321
+
## Too slow for you?
322
+
323
+
**Quick fixes:**
324
+
-`Pose2Sim.calibration()`:\
325
+
Run it only when your cameras are moved or changed. If they are not, just copy a previous calibration.toml file into your new calibration folder.
326
+
-`Pose2Sim.poseEstimation()`:
327
+
- Set `det_frequency = 100` in Config.toml. Do not run the person detector every frame. Run it once, and then track the bounding boxes, which is much faster (pose estimation will still be run every frame): .\
328
+
*150 s -> 30 s on my laptop with the Demo videos*
329
+
- Use `mode = 'lightweight'`: Will use a lighter version of RTMPose, which is faster but less accurate\
330
+
*30 s -> 20 s*
331
+
- Set `display_detection = false`. Do not display results in real time\
332
+
*20 s -> 15 s*
333
+
- Set `save_video = 'none'`. Do not save images and videos\
334
+
*15 s -> 9 s*
335
+
- Set `tracking_mode = 'sports2d'` or `tracking_mode = 'none'`. If several persons are in the scene, use the sports2d tracker or no tracker at all, but not 'deepsort' (sports2d tracking is almost instantaneous though).
336
+
-`Pose2Sim.synchronization()`:\
337
+
Do not run if your cameras are natively synchronized.
338
+
-`Pose2Sim.personAssociation()`:\
339
+
Do not run if there is only one person in the scene.
340
+
-`Pose2Sim.triangulation()`:\
341
+
Not much to do here.
342
+
-`Pose2Sim.filtering()`:\
343
+
You can skip this step, but it is quite fast already.
344
+
-`Pose2Sim.markerAugmentation()`:\
345
+
Very fast, too. Note that marker augmentation won't necessarily improve results so you can consider skipping it.
346
+
-`Pose2Sim.kinematics()`:\
347
+
Set `use_simple_model = true`. Use a simpler OpenSim model, without muscles and constraints. Note that the spine will be stiff and shoulders will be a simple ball joint, but this is accurate enough for most gait-related tasks\
348
+
9 s -> 0.7 s
349
+
350
+
<br>
351
+
352
+
**Use your GPU**:\
353
+
This would make pose estimation significantly faster, without any impact on accuracy. See [Installation](#installation) section for more information.
0 commit comments