Closed 161siegels closed 1 month ago
Hi, thanks for sharing! Could you try to set tracking to false in your config file ? In the meantime, I'll try to pin the issue and fix it.
And if I can't find it and that's possible for you, could you send your data to contact@david-pagnon.com?
It works if tracking is false but we want tracking (my understanding is this allows for reidentification of people between frames).
Unfortunately I cannot send my data, but I appreciate you looking into this for me! I tried stepping through the code and I couldn't quite put my finger on it but my hunch is that it is some rounding error.
If this helps, when I reduce the frame rate slightly (from the default 60 fps), i get a different mismatch error
(11,26,2) could not be broadcast to indexing result of shape (12,26,2))
It works if tracking is false but we want tracking (my understanding is this allows for reidentification of people between frames).
The reidentification of people between frames is done at the triangulation stage, so it should not matter. At this stage, tracking is only useful for synchronization if you need it, but I'll try to fix it anyway.
Could you send me the whole error message? (both, actually)?
Ah thanks for the clarification! Really appreciate the quick responses too!! This repo is awesome. When you say synchronization if needed, do you mean that it will need it for synchronization if the videos are not perfectly aligned? Or is this an additional aid for synchronization that you think is often not necessary.
Just trying to gauge how necessary you think this it is for us to allow tracking (I understand this may be difficult without seeing the data).
Here is the full error message:
Traceback (most recent call last):
File "/Users/xxx/miniconda3/envs/Pose2Sim/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/xxx/miniconda3/envs/Pose2Sim/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/xxx/.vscode/extensions/ms-python.debugpy-2024.10.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/main.py", line 39, in
Thanks for the appreciation! And thanks for the error message as well, I'll have a look in the next few days.
It depends on what you are trying to do:
Makes sense! I think we would want tracking for our use case then. Thanks again
I'll write a fix and keep you updated as soon as the new version is released then
The update is uploaded, you can upgrade your pose2sim version with pip install pose2sim -U
.
Just to keep you informed, I plan to integrate the OpenSim stage within Pose2Sim by the end of the week :)
Sorry, I'm just realizing that I introduced another bug, I'm currently trying to fix it! 😅
No worries! May I ask what the bug is? I am having extrinsic calibration issues with one of my cameras. Doubt this would affect it but just curious
It was a big on synchronization but I just solved it (although I did not push the release yet). We chose to synchronize on the person with the highest confidence to cope with bad detections, but the person in the background of the Single person demo is detected with a high confidence so that did not work great. Instead, I decided to synchronize on the person with the largest bounding box.
I don't think this has anything to do with your extrinsic calibration problem but tell me if you can't solve it!
Sounds good! I think I solved the extrinsic calibration when using 2 of our 3 cameras (the reprojection error is low and the picture looks great). However, I am still having issues with the resulting 3d output having nonsensical coordinates. I will provide a bit about my setup + issues... any help would be greatly appreciated!
Setup
Issues
time_range_around_maxspeed
. However, I think I do not want to specify this since we care about multiple people in the frame throughout its durationThanks again for all your help! I understand this is a bit difficult without our data but I appreciate your patience and hard work
From what you are telling me, the main difficult points seem to be:
Issues:
Not sure I correctly answered your comments so feel free to ask again!
Thank you so much for the detailed response! I think you answered most of my questions but I have a few follow ups.
Is it possible to send me just the folder with your calibration images/videos (intrinsic and extrinsic) so that I can check?
This issue has been handled by email, and is consequently closed.
I have been running into an error with multi person pose estimation. On my example, i keep getting shape mismatch errors. It seems that one of the frames is thrown out when calculating
track_ids_last_frame
but keypoints has every frame. I am using HALPE_26 and Yolox. Here is where the code errors, followed by the error message. Any help is welcome!keypoints_filled[pose_tracker.track_ids_last_frame] = keypoints
File "/Users/161siegels/miniconda3/envs/Pose2Sim/lib/python3.9/site-packages/Pose2Sim/poseEstimation.py", line 168, in process_video keypoints_filled[pose_tracker.track_ids_last_frame] = keypoints ValueError: shape mismatch: value array of shape (13,26,2) could not be broadcast to indexing result of shape (12,26,2)
If I edit this line to be:
keypoints_filled[pose_tracker.track_ids_last_frame] = keypoints[pose_tracker.track_ids_last_frame]
then it would work but I am unclear if this is problematic