Commit Graph

16 Commits

Author SHA1 Message Date
davidpagnon
3a31bd05fd Clearer config on pose estimation 2024-10-22 11:08:29 +02:00
davidpagnon
89d68bca90 missed an update to be done in calibration.py 2024-09-22 23:28:33 +02:00
davidpagnon
4dc4060547 Support caliscope calibration + fixed multi-person tracking 2024-09-22 23:06:07 +02:00
davidpagnon
6f7e883cd3 fixed multi_person + differenciates X,Y,Z in scaling 2024-09-20 14:42:50 +02:00
davidpagnon
65e675ab64 beta test opensim scaling and kinematics with edits 2024-09-20 02:23:13 +02:00
peterlololsss
215c8a6e6c
implementing OpensimProcessing (#130)
* implementing opensimProcessing

* edited in cooperating with opensimProcessing

* Update scaling2IK.py

* implementing opensimProcessing

* Update and rename scaling2IK.py to kinematics.py

* Add files via upload

* Add files via upload

* Update Config.toml

* Update Config.toml

* Update Config.toml

* Update Config.toml

* Update Config.toml

* Update Config.toml

* implementing opensim processing

* OpenSim part addition

* OpenSim Processing function signature adjustment

* code logic and layout adjustments

* opensimProcessing test enabled

* Update Pose2Sim.py

* Update Pose2Sim.py

* docstring for opensimProcessing updated

* saved folder name changed to opensim

* opensim processing tests enabled

* Deleted a repetitive line at opensim kinematics section
2024-09-18 01:04:52 +02:00
davidpagnon
07afe0b0fb removed tracking option in pose estimation + fixed tests so that synchonization is not done in multiperson Demo + fixed multitab plots crashing 2024-09-17 23:35:40 +02:00
davidpagnon
6fd237ecc9 Removed tracking option in pose estimation, as it is performed at the triangulation stage + linear interpolation by default 2024-09-17 23:05:53 +02:00
davidpagnon
842914700f clearer synchronization messages 2024-08-07 11:19:16 +02:00
davidpagnon
e270c6d1d8 fixed calib in multi_person 2024-07-17 13:49:12 +02:00
davidpagnon
e5dd81d94d option to skip pose estimation if already done 2024-07-17 10:57:12 +02:00
davidpagnon
75943b90ca minor edits 2024-07-10 14:53:38 +02:00
davidpagnon
e21c763614 minor edits 2024-07-10 14:51:34 +02:00
davidpagnon
86f7088b4e option to fill large gaps with nan, last valid value, or zeros 2024-07-09 20:54:18 +02:00
davidpagnon
7a3bcf76be minor edits 2024-07-09 19:19:41 +02:00
David PAGNON
b2fe4f7ba3
Pose estimation test (#116)
Edits from @hunminkim98's awesome work at integrating pose estimation into Pose2Sim with RTMLib. Most of the changes in syntax are not necessarily better, it is mostly for the code to be more consistent with the rest of the library. Thank you again for your fantastic work!

General:
- Automatically detects whether a valid CUDA install is available. If so, use the GPU with the ONNXRuntime backend. Otherwise, use the CPU with the OpenVINO backend
- The tensorflow version used for marker augmentation was incompatible with the cuda torch installation for pose estimation: edited code and models for it to work with the latest tf version.
- Added logging information to pose estimation
- Readme.md: provided an installation procedure for CUDA (took me a while to find something simple and robust)
- Readme.md: added information about PoseEstimation with RTMLib
- added poseEstimation to tests.py
- created videos for the multi-person case (used to only have json, no video), and reorganized Demo folders. Had to recreate calibration file as well

Json files:
- the json files only saved one person, I made it save all the detected ones
- tracking was not taken into account by rtmlib, which caused issues in synchronization: fixed, waiting for merge
- took the save_to_openpose function out from the main function
- minified the json files (they take less space when all spaces are removed)

Detection results:
- Compared the triangulated locations of RTMpose keypoints to the ones of OpenPose to potentially edit model marker locations on OpenSim. Did not seem to need it.

Others in Config.toml:
- removed the "to_openpose" option, which is not needed
- added the flag: save_video = 'to_images' # 'to_video' or 'to_images' or ['to_video', 'to_images']
- changed the way frame_range was handled (made me change synchronization in depth, as well as personAssociation and triangulation)
- added the flag: time_range_around_maxspeed in synchronization
- automatically detect framerate from video, or set to 60 fps if we work from images (or give a value)
- frame_range -> time_range
- moved height and weight to project (only read for markerAugmentation, and in the future for automatic scaling)
- removed reorder_trc from triangulation and Config -> call it for markerAugmentation instead

Others:
- Provided an installation procedure for OpenSim (for the future) and made continuous installation check its install (a bit harder since it cannot be installed via pip)
- scaling from motion instead of static pose (will have to study whether it's as good or not)
- added logging to synchronization
- Struggled quite a bit with continuous integration


* Starting point of integrating RTMPose into Pose2Sim. (#111)

* RTM_to_Open

Convert format from RTMPose to OpenPose

* rtm_intergrated

* rtm_integrated

* rtm_integrated

* rtm_integrated

* rtm

* Delete build/lib/Pose2Sim directory

* rtm

* Delete build/lib/Pose2Sim directory

* Delete onnxruntime-gpu

* device = cpu

* add pose folder

* Update tests.py

* added annotation

* fix typo

* Should work be still lots of tests to run. Detailed commit coming soon

* intermediary commit

* last checks before v0.9.0

* Update continuous-integration.yml

* Update tests.py

* replaced tabs with spaces

* unittest issue

* unittest typo

* deactivated display for CI test of pose detection

* Try to make continuous integration work

* a

* b

* c

* d

* e

* f

* g

* h

* i

* j

* k

* l

---------

Co-authored-by: HunMinKim <144449115+hunminkim98@users.noreply.github.com>
2024-07-09 16:39:33 +02:00