Commit Graph

46 Commits

Author SHA1 Message Date
David PAGNON
cdf795bb71
shutdown logging 2024-08-22 16:13:46 +02:00
davidpagnon
2bc68d4d59 fixed batch processing 2024-07-17 16:50:14 +02:00
davidpagnon
d35b64efcb clearer error when empty pose directories 2024-07-16 10:11:41 +02:00
davidpagnon
29e27ce355 minor fixes 2024-07-13 22:05:03 +02:00
davidpagnon
b31215c8c0 integration of pose estimation 2024-07-10 10:12:57 +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
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
6cee2078c1 only consider directories when looking for calib_dir 2024-04-26 23:15:34 +02:00
davidpagnon
9a60007a5a forgot an os.listdir -> could not find calib when run from trial + version update 2024-04-26 22:06:03 +02:00
davidpagnon
7f6e6a829d Edited Readme and minor stuff 2024-04-15 23:40:01 +02:00
davidpagnon
aff6b836f7 Ready to merge 2024-04-15 15:36:47 +02:00
davidpagnon
bd9bbb68ab works both for single trial and batch 2024-04-13 18:42:30 +02:00
davidpagnon
f4c764f3cb tests synchro 2024-03-16 15:49:40 +01:00
HunMinKim
5ddef52185
Synchronize multi cams based on keypoints speed. (#76) @rlagnsals
@rlagnsals 

* synchronization

* Auto Synchronization

* Auto Synchronization

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Auto Synchronization

* Update synchronize_cams.py

* Auto Synchronization

* Delete Pose2Sim/S00_Demo_Session/Config.toml

* Add files via upload

* Update Config.toml
2024-03-15 20:26:49 +01:00
David PAGNON
ded436e9fe
Merge pull request #78 from ANaaim/minor_correction
Change of the testing of Calib and calib to work properly
2024-03-12 16:40:57 +01:00
davidpagnon
56f55674bf revert to model.predict(outputs) 2024-03-12 16:08:12 +01:00
Anaaim
7e8a93f1a2 Change of the testing of Calib and calib to work properly 2024-03-12 08:39:12 +01:00
davidpagnon
938f2f2ff8 time in hours, minutes, seconds 2024-03-06 00:15:21 +01:00
davidpagnon
c04df78697 added datetime to logs 2024-03-05 02:59:25 +01:00
davidpagnon
05ffe7f36f multi-person frame of work works with single person 2024-02-26 18:13:39 +01:00
davidpagnon
607865e3d4 beta: multi-person 2024-02-23 18:16:56 +01:00
David PAGNON
449ce87fb7
foolproofing broke something -> fixed 2024-02-09 12:18:57 +01:00
davidpagnon
a4d38da980 Added videos and foolproofing stuff 2024-02-05 00:04:36 +01:00
davidpagnon
5f75e29f20 LSTM review 2024-01-19 20:03:35 +01:00
HunMinKim
3db4541f4a
Update Pose2Sim.py
Delete import tensorflow when run triangulation
2024-01-18 09:28:37 +09:00
Kim HunMin
966afd723c Separated augment 2024-01-15 09:39:33 +09:00
Kim HunMin
0dfc7ea705 erged augmented to triangulation 2024-01-13 13:15:09 +09:00
Kim HunMin
a601c3eac2 Update AUGMENTED 2024-01-12 11:15:27 +09:00
HunMinKim
4346e0e001
Update Pose2Sim.py
Update augmenter
2024-01-09 20:30:06 +09:00
davidpagnon
f446c3b61f comment unused functions 2023-12-17 20:08:34 +01:00
davidpagnon
500402ca19 ready to merge v0.5 2023-12-17 19:57:57 +01:00
davidpagnon
dde50b4f83 opensim okay 2023-12-17 17:24:09 +01:00
davidpagnon
bea4835d66 test okay 2023-12-17 14:29:22 +01:00
davidpagnon
442533f661 filtering fixed 2023-12-16 22:19:58 +01:00
davidpagnon
37354e2598 batch processing works but someth strange in filt 2023-12-16 22:15:12 +01:00
davidpagnon
9dff5d73be config can be dict, dir, None (from current dir) 2023-12-09 22:06:57 +01:00
davidpagnon
f23f82c6eb bla 2023-12-09 12:53:43 +01:00
davidpagnon
96b1d59351 daily commit 2023-12-08 09:39:34 +01:00
davidpagnon
b0d89e08b3 create config for each trial ok 2023-12-07 17:08:34 +01:00
davidpagnon
7652d271ff draft for batch processing 2023-12-06 09:48:11 +01:00
davidpagnon
faec842d9e can run with config dict rather than file 2023-09-20 14:39:40 +02:00
davidpagnon
61a680e604 set up for new goals 2023-09-17 20:48:13 +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
23c559f59f logs in right dir when P2S invoked from other dir 2023-08-04 13:08:21 +02:00
davidpagnon
b2f5edb743 initial commit 2023-07-19 11:37:20 +02:00