Commit Graph

48 Commits

Author SHA1 Message Date
David PAGNON
df0bbc5652
Fix for when no person association or synchronization is run 2024-07-13 22:02:24 +02:00
davidpagnon
b31215c8c0 integration of pose estimation 2024-07-10 10:12:57 +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
davidpagnon
86e3936a50 pose estimation support 2024-07-09 16:47:42 +02:00
davidpagnon
2551d479f9 pose estimation release 2024-07-09 16:46:35 +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
davidpagnon
f64a8b3591 bump to v0.8.4 2024-06-08 16:21:08 +02:00
David PAGNON
aaad2a8991
Update setup.cfg 2024-04-26 23:56:16 +02:00
David PAGNON
3935210d41
Update setup.cfg 2024-04-26 23:54:21 +02:00
davidpagnon
de14598a42 replace non interpolated values by last valid value; change lxml version; fixed interpolation message 2024-04-26 23:07:48 +02:00
davidpagnon
2b02755920 minor changes 2024-04-16 02:28:46 +02:00
davidpagnon
7b1388d361 v0.8.0 2024-04-15 15:42:13 +02:00
David PAGNON
0d2f63d483
Update setup.cfg 2024-03-12 15:44:50 +01:00
davidpagnon
3ffd39fe17 fixed error when comparing lists with nana 2024-03-05 01:35:06 +01:00
davidpagnon
fcae1ca02e Edit readme 2024-03-01 04:17:08 +01:00
davidpagnon
a948c205cf multi-person analysis almost there 2024-02-28 16:28:09 +01:00
David PAGNON
74dd6d44bb
Minor fixes 2024-02-09 12:41:48 +01:00
davidpagnon
2678c0f5d8 minor fixes 2024-02-09 12:41:00 +01:00
davidpagnon
e7c71278ab v0.6 with LSTM and Blender visualizer 2024-02-05 17:39:57 +01:00
davidpagnon
8595ef333e Typo: no Demo packages downloaded upon install 2024-01-19 20:49:08 +01:00
davidpagnon
5f75e29f20 LSTM review 2024-01-19 20:03:35 +01:00
davidpagnon
57eef5f0c4 undistort to false by default 2024-01-08 13:01:39 +01:00
davidpagnon
2e1aa90ac7 temporary release 2024-01-05 16:38:50 +01:00
davidpagnon
76c39fcafd should work on cameras with distortions; still needs to be fully tested 2024-01-02 20:15:43 +01:00
davidpagnon
b2046530d5 handle limb swapping 2024-01-01 03:51:31 +01:00
davidpagnon
0cb62db508 Retrieve accidentally removed opensim setup files 2023-12-17 21:19:56 +01:00
davidpagnon
167cd52f37 calibration ok 2023-12-08 11:21:48 +01:00
davidpagnon
7652d271ff draft for batch processing 2023-12-06 09:48:11 +01:00
David PAGNON
0d6d9bbd8a
Update setup.cfg 2023-11-22 11:41:26 +01:00
David PAGNON
30e2dc6784
Update setup.cfg 2023-11-16 13:08:09 +01:00
David PAGNON
a52d8f48cb
Update setup.cfg 2023-11-16 13:04:32 +01:00
davidpagnon
c53553d8a3 only display the outer corners in findCorners 2023-11-07 13:35:43 +01:00
davidpagnon
475f7df0fa Fixed error message in calibration @ANaaim 2023-11-07 13:14:08 +01:00
davidpagnon
17d2d776bd Demo package data were not included anymore 2023-11-03 01:09:06 +01:00
davidpagnon
1a48c7604e Include empty folders in Empty_project 2023-11-01 17:14:41 +01:00
davidpagnon
c6a0da0d31 Include empty folders upon install 2023-11-01 16:39:38 +01:00
davidpagnon
b970c86d1d Custom model def in Config.toml, not skeletons.py 2023-11-01 15:56:37 +01:00
davidpagnon
7d7e86aaa4 upgrade pandas & no support for python>3.8 2023-10-18 12:56:15 +02:00
David PAGNON
4165ea459f
added intrinsic error feedback & solved bug when window closed 2023-10-11 23:51:15 +02:00
davidpagnon
7d92672371 batch processing, more calibration conversions 2023-09-21 15:05:35 +02:00
David PAGNON
6630cb8334
Update setup.cfg 2023-09-17 14:11:13 +02:00
David PAGNON
d56b12094d
Update setup.cfg 2023-09-17 14:08:34 +02:00
davidpagnon
184811594e ready for upload on conda-forge 2023-09-07 14:39:18 +02:00
David PAGNON
d977716820
removed c3d from required packages 2023-09-07 12:23:03 +02:00
davidpagnon
b08bba12a0 Merge branch 'draft-0.4' of https://github.com/perfanalytics/pose2sim into draft-0.4 2023-08-19 08:59:34 +02:00
davidpagnon
709379c7d0 a 2023-08-04 12:53:34 +02:00
davidpagnon
b2f5edb743 initial commit 2023-07-19 11:37:20 +02:00