sports2d 0.8.8__tar.gz → 0.8.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {sports2d-0.8.8 → sports2d-0.8.10}/PKG-INFO +2 -2
  2. {sports2d-0.8.8 → sports2d-0.8.10}/README.md +1 -1
  3. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Demo/Config_demo.toml +1 -1
  4. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Sports2D.py +2 -2
  5. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Utilities/tests.py +2 -2
  6. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/process.py +0 -1
  7. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/PKG-INFO +2 -2
  8. {sports2d-0.8.8 → sports2d-0.8.10}/.github/workflows/continuous-integration.yml +0 -0
  9. {sports2d-0.8.8 → sports2d-0.8.10}/.github/workflows/joss_pdf.yml +0 -0
  10. {sports2d-0.8.8 → sports2d-0.8.10}/.github/workflows/publish-on-release.yml +0 -0
  11. {sports2d-0.8.8 → sports2d-0.8.10}/.gitignore +0 -0
  12. {sports2d-0.8.8 → sports2d-0.8.10}/CITATION.cff +0 -0
  13. {sports2d-0.8.8 → sports2d-0.8.10}/Content/Demo_plots.png +0 -0
  14. {sports2d-0.8.8 → sports2d-0.8.10}/Content/Demo_results.png +0 -0
  15. {sports2d-0.8.8 → sports2d-0.8.10}/Content/Demo_terminal.png +0 -0
  16. {sports2d-0.8.8 → sports2d-0.8.10}/Content/Person_selection.png +0 -0
  17. {sports2d-0.8.8 → sports2d-0.8.10}/Content/Video_tuto_Sports2D_Colab.png +0 -0
  18. {sports2d-0.8.8 → sports2d-0.8.10}/Content/joint_convention.png +0 -0
  19. {sports2d-0.8.8 → sports2d-0.8.10}/Content/paper.bib +0 -0
  20. {sports2d-0.8.8 → sports2d-0.8.10}/Content/paper.md +0 -0
  21. {sports2d-0.8.8 → sports2d-0.8.10}/Content/sports2d_blender.gif +0 -0
  22. {sports2d-0.8.8 → sports2d-0.8.10}/Content/sports2d_opensim.gif +0 -0
  23. {sports2d-0.8.8 → sports2d-0.8.10}/LICENSE +0 -0
  24. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Demo/demo.mp4 +0 -0
  25. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Sports2D.ipynb +0 -0
  26. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Utilities/__init__.py +0 -0
  27. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Utilities/common.py +0 -0
  28. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/Utilities/filter.py +0 -0
  29. {sports2d-0.8.8 → sports2d-0.8.10}/Sports2D/__init__.py +0 -0
  30. {sports2d-0.8.8 → sports2d-0.8.10}/pyproject.toml +0 -0
  31. {sports2d-0.8.8 → sports2d-0.8.10}/setup.cfg +0 -0
  32. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/SOURCES.txt +0 -0
  33. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/dependency_links.txt +0 -0
  34. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/entry_points.txt +0 -0
  35. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/requires.txt +0 -0
  36. {sports2d-0.8.8 → sports2d-0.8.10}/sports2d.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.8
3
+ Version: 0.8.10
4
4
  Summary: Compute 2D human pose and angles from a video or a webcam.
5
5
  Author-email: David Pagnon <contact@david-pagnon.com>
6
6
  Maintainer-email: David Pagnon <contact@david-pagnon.com>
@@ -489,7 +489,7 @@ sports2d --help
489
489
  'do_ik': ["", "do inverse kinematics. false if not specified"],
490
490
  'use_augmentation': ["", "Use LSTM marker augmentation. false if not specified"],
491
491
  'feet_on_floor': ["", "offset marker augmentation results so that feet are at floor level. true if not specified"],
492
- 'use_contacts_muscles': ["", "Use model with contact spheres and muscles. false if not specified"],
492
+ 'use_simple_model': ["", "IK 10+ times faster, but no muscles or flexible spine. false if not specified"],
493
493
  'participant_mass': ["", "mass of the participant in kg or none. Defaults to 70 if not provided. No influence on kinematics (motion), only on kinetics (forces)"],
494
494
  'close_to_zero_speed_m': ["","Sum for all keypoints: about 50 px/frame or 0.2 m/frame"],
495
495
  'tracking_mode': ["", "'sports2d' or 'deepsort'. 'deepsort' is slower, harder to parametrize but can be more robust if correctly tuned"],
@@ -446,7 +446,7 @@ sports2d --help
446
446
  'do_ik': ["", "do inverse kinematics. false if not specified"],
447
447
  'use_augmentation': ["", "Use LSTM marker augmentation. false if not specified"],
448
448
  'feet_on_floor': ["", "offset marker augmentation results so that feet are at floor level. true if not specified"],
449
- 'use_contacts_muscles': ["", "Use model with contact spheres and muscles. false if not specified"],
449
+ 'use_simple_model': ["", "IK 10+ times faster, but no muscles or flexible spine. false if not specified"],
450
450
  'participant_mass': ["", "mass of the participant in kg or none. Defaults to 70 if not provided. No influence on kinematics (motion), only on kinetics (forces)"],
451
451
  'close_to_zero_speed_m': ["","Sum for all keypoints: about 50 px/frame or 0.2 m/frame"],
452
452
  'tracking_mode': ["", "'sports2d' or 'deepsort'. 'deepsort' is slower, harder to parametrize but can be more robust if correctly tuned"],
@@ -152,7 +152,7 @@ filter_type = 'butterworth' # butterworth, gaussian, LOESS, median
152
152
  do_ik = false # Do scaling and inverse kinematics?
153
153
  use_augmentation = false # true or false (lowercase) # Set to true if you want to use the model with augmented markers
154
154
  feet_on_floor = false # true or false (lowercase) # Set to false if you want to use the model with feet not on the floor (e.g. running, jumping, etc.)
155
- use_contacts_muscles = true # true or false (lowercase) # If true, contact spheres and muscles are added to the model
155
+ use_simple_model = false # true or false # >10 times faster IK if true. No muscles, no constraints (eg stiff spine and shoulders, no patella)
156
156
  participant_mass = [55.0, 67.0] # kg # defaults to 70 if not provided. No influence on kinematics (motion), only on kinetics (forces)
157
157
  right_left_symmetry = true # true or false (lowercase) # Set to false only if you have good reasons to think the participant is not symmetrical (e.g. prosthetic limb)
158
158
 
@@ -243,7 +243,7 @@ DEFAULT_CONFIG = {'base': {'video_input': ['demo.mp4'],
243
243
  'kinematics':{'do_ik': False,
244
244
  'use_augmentation': False,
245
245
  'feet_on_floor': False,
246
- 'use_contacts_muscles': True,
246
+ 'use_simple_model': False,
247
247
  'participant_mass': [55.0, 67.0],
248
248
  'right_left_symmetry': True,
249
249
  'default_height': 1.70,
@@ -297,7 +297,7 @@ CONFIG_HELP = {'config': ["C", "path to a toml configuration file"],
297
297
  'do_ik': ["", "do inverse kinematics. false if not specified"],
298
298
  'use_augmentation': ["", "Use LSTM marker augmentation. false if not specified"],
299
299
  'feet_on_floor': ["", "offset marker augmentation results so that feet are at floor level. true if not specified"],
300
- 'use_contacts_muscles': ["", "Use model with contact spheres and muscles. false if not specified"],
300
+ 'use_simple_model': ["", ">10 times faster IK if true. No muscles, no constraints (eg stiff spine and shoulders, no patella). false if not specified"],
301
301
  'participant_mass': ["", "mass of the participant in kg or none. Defaults to 70 if not provided. No influence on kinematics (motion), only on kinetics (forces)"],
302
302
  'close_to_zero_speed_m': ["","Sum for all keypoints: about 50 px/frame or 0.2 m/frame"],
303
303
  'tracking_mode': ["", "'sports2d' or 'deepsort'. 'deepsort' is slower, harder to parametrize but can be more robust if correctly tuned"],
@@ -97,8 +97,8 @@ def test_workflow():
97
97
  config_dict.get("base").update({"video_dir": str(video_dir)})
98
98
  config_dict.get("base").update({"person_ordering_method": "highest_likelihood"})
99
99
  with open(config_path, 'w') as f: toml.dump(config_dict, f)
100
- demo_cmd4 = ["sports2d", "--config", str(config_path), "--show_realtime_results", "False", "--show_graphs", "False"]
101
- subprocess.run(demo_cmd4, check=True, capture_output=True, text=True, encoding='utf-8')
100
+ demo_cmd5 = ["sports2d", "--config", str(config_path), "--show_realtime_results", "False", "--show_graphs", "False"]
101
+ subprocess.run(demo_cmd5, check=True, capture_output=True, text=True, encoding='utf-8')
102
102
 
103
103
 
104
104
  if __name__ == "__main__":
@@ -1735,7 +1735,6 @@ def process_fun(config_dict, video_file, time_range, frame_rate, result_dir):
1735
1735
  all_frames_scores_homog = all_frames_scores_homog[...,new_keypoints_ids]
1736
1736
 
1737
1737
  frame_range = [0,frame_count] if video_file == 'webcam' else frame_range
1738
- print(frame_range)
1739
1738
  all_frames_time = pd.Series(np.linspace(frame_range[0]/fps, frame_range[1]/fps, frame_count-frame_range[0]), name='time')
1740
1739
  if load_trc_px:
1741
1740
  selected_persons = [0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.8
3
+ Version: 0.8.10
4
4
  Summary: Compute 2D human pose and angles from a video or a webcam.
5
5
  Author-email: David Pagnon <contact@david-pagnon.com>
6
6
  Maintainer-email: David Pagnon <contact@david-pagnon.com>
@@ -489,7 +489,7 @@ sports2d --help
489
489
  'do_ik': ["", "do inverse kinematics. false if not specified"],
490
490
  'use_augmentation': ["", "Use LSTM marker augmentation. false if not specified"],
491
491
  'feet_on_floor': ["", "offset marker augmentation results so that feet are at floor level. true if not specified"],
492
- 'use_contacts_muscles': ["", "Use model with contact spheres and muscles. false if not specified"],
492
+ 'use_simple_model': ["", "IK 10+ times faster, but no muscles or flexible spine. false if not specified"],
493
493
  'participant_mass': ["", "mass of the participant in kg or none. Defaults to 70 if not provided. No influence on kinematics (motion), only on kinetics (forces)"],
494
494
  'close_to_zero_speed_m': ["","Sum for all keypoints: about 50 px/frame or 0.2 m/frame"],
495
495
  'tracking_mode': ["", "'sports2d' or 'deepsort'. 'deepsort' is slower, harder to parametrize but can be more robust if correctly tuned"],
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes