Commit Graph

861 Commits

Author SHA1 Message Date
davidpagnon
842914700f clearer synchronization messages 2024-08-07 11:19:16 +02:00
David PAGNON
07ffa2678b
Update README.md 2024-08-06 23:52:36 +02:00
davidpagnon
60ad0cdc61 Not on storage use 2024-08-06 15:58:12 +02:00
davidpagnon
3a5cf04996 forgot to upgrade version 2024-08-06 13:17:17 +02:00
davidpagnon
df12e356f5 Merge branch 'main' of https://github.com/perfanalytics/pose2sim 2024-08-06 13:13:42 +02:00
davidpagnon
28e06edd58 no torch dependency if running on CPU 2024-08-06 13:13:31 +02:00
David PAGNON
e76b696ffd
To-do: RTMW3D for monocular 3D kinematics 2024-08-04 00:01:02 +02:00
David PAGNON
676c6825fb
fixed when camera not moving 2024-07-31 15:53:31 +02:00
davidpagnon
fa81ecd0ba replace by nan if out of image 2024-07-31 10:47:02 +02:00
davidpagnon
4bf9668af6 yet another test for passing CI 2024-07-30 21:50:38 +02:00
davidpagnon
169a0348c8 next attempt at debugging 2024-07-30 17:17:42 +02:00
davidpagnon
d5be00e9b1 debugging attempt for py 3.10 and 3.11 2024-07-30 16:52:49 +02:00
davidpagnon
1d275044f0 test when edits to setup.cfg 2024-07-30 16:19:54 +02:00
davidpagnon
0b7b5e2dbf fixed setup.cfg 2024-07-30 16:17:40 +02:00
davidpagnon
a273125d34 Merge branch 'main' of https://github.com/perfanalytics/pose2sim 2024-07-30 16:13:53 +02:00
davidpagnon
48f169dfdb include Batch Demo folder + minor edits 2024-07-30 16:13:42 +02:00
David PAGNON
55acc094da
removed double conda installation
del line 49:

conda create -n pose2sim python=${{ matrix.python-version }} -y
2024-07-30 15:47:36 +02:00
David PAGNON
72fa620552
OpenSim not available for Python 3.12 yet 2024-07-30 00:10:05 +02:00
David PAGNON
a832aa2142
Try CI for up to Python 3.12 2024-07-30 00:02:51 +02:00
davidpagnon
3bb2c5dfb6 Pose2Sim storage use 2024-07-26 22:52:52 +02:00
David PAGNON
12e4672894
Update README.md 2024-07-26 22:44:04 +02:00
David PAGNON
5eb6ef0fcc
GPU support takes 4.0 more GB 2024-07-26 21:48:20 +02:00
davidpagnon
16c8a73bbf Merge branch 'main' of https://github.com/perfanalytics/pose2sim 2024-07-26 16:51:00 +02:00
davidpagnon
7b58454712 Moving cameras supported (to be added to the Pose2Sim main pipeline) 2024-07-26 16:50:51 +02:00
David PAGNON
90d0ccc14a
start at frame 1 instead of 0 2024-07-23 00:14:15 +02:00
David PAGNON
1a8253aa24
optional argument for specifying marker list to export 2024-07-22 22:44:31 +02:00
davidpagnon
ac037e05ce works if no number in camera folder names 2024-07-18 09:51:42 +02:00
davidpagnon
644ce103b8 bump to next version 2024-07-17 17:48:51 +02:00
davidpagnon
15f2308f26 fix for linux CI 2024-07-17 17:30:56 +02:00
davidpagnon
c4f20d160c typo 2024-07-17 16:51:51 +02:00
davidpagnon
2bc68d4d59 fixed batch processing 2024-07-17 16:50:14 +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
d35b64efcb clearer error when empty pose directories 2024-07-16 10:11:41 +02:00
davidpagnon
9925d6d8c8 minor fix for concision 2024-07-13 22:16:33 +02:00
davidpagnon
abc7af8871 Merge branch 'main' of https://github.com/perfanalytics/pose2sim 2024-07-13 22:05:12 +02:00
davidpagnon
29e27ce355 minor fixes 2024-07-13 22:05:03 +02:00
David PAGNON
df0bbc5652
Fix for when no person association or synchronization is run 2024-07-13 22:02:24 +02:00
David PAGNON
d44ec76d5c
Needs for python >=3.9 2024-07-12 13:02:01 +02:00
David PAGNON
05c4502735
Fixed error when no person association 2024-07-11 11:26:50 +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
b31215c8c0 integration of pose estimation 2024-07-10 10:12:57 +02:00
David PAGNON
ae22ae4358
Update README.md 2024-07-09 21:26:31 +02:00
davidpagnon
bc3cd4fb24 fixed typo 2024-07-09 21:11:32 +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