-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for compatibility with pose2sim #18
Update for compatibility with pose2sim #18
Conversation
Hi @AurelienCoppee, Thank you for your suggestion! I have been endlessly debating whether to use a time_range or a frame_range. A frame_range is more precise, but much less intuitive than a time_range. And Sports2D is meant to be as simple as possible. Now that I think about it, it would be nice to have both options available. Would you mind trying to implement that? In case both parameters are given, we can print a warning message like so: It would be great if you could test it both with a config file where neigher time_range nor frame_range are empty lists [ ]: Thanks in advance! |
Thanks! I'll check it out in a little bit, I'm afraid I can't find time right now. |
No problem, your feedback is welcome, I continue to look at how to improve their interoperability. |
Hi @AurelienCoppee, Could you give me a summary of what you edited and why, so that it would help the reviewing process? Finally, the checks fail but it is likely to be due to you changing |
Hi, I basically only renamed and reorganized the code to achieve easy integration of sports2d in pose2sim. It's the name used in pose2sim for the "same" purpose, i don't have knowledge in your field, I'm a software dev, so it's only a suggestion for a more comprehensive code. |
Oh yes you are right 😅 I guess I was the one giving it a bad name actually, it would make more sense to call it
I'm not sure I understand and answer correctly, but maybe we could just make it a new release (v0.5) once it is done, and document the change? I appreciate you trying to make the changes necessary for an integration into Pose2Sim by the way, I've wanted to do it for a while! I have the project of adding the possibility of calibrating the camera for coordinates in meters, and to run 2D inverse kinematics. But I'll have to postpone it for now :) |
I'm doing the changes on Pose2Sim also, should i print a log warning peoples to moves from display detection to show_realtime_results if they're using it to prepare them to future remove ? Can also do it for the variables I changed in sports2D Yes it's a good idea, i was just suggesting to create a new branch (Where I will do my next pull request) so instead of this pull request the code is on a place everyone can edit. |
That would be nice! By the way, can you still run Sports2D with a config file, and from within Python? I just created a branch "experimental", it may be a good idea indeed! |
Oh okay I misunderstood, thank you for creating the branch on your side |
No you understood well on the first time 😂 Changed the destination of this pull request
Didn't understood what you meant? |
You can run Sports2D different ways:
Does it still work in all cases? |
Yes it does. I also changed the parameters to_image and to_video to save_video, the same way it works on pose2sim. What do you think about that? I didn't already added a backward compatibility |
(I edited the previous comment about the save_video, not sure you saw it) |
Sorry, yes I think it makes sense! |
No problem, ok nice! |
Rename (and adapted the code) to move from time_range to frame_range, allowing compatibility with pose2sim