-
Notifications
You must be signed in to change notification settings - Fork 18
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
First frame takes long, others are faster #25
Comments
Hello! Sorry for but I was overwhelmed the last few days! Regarding the speed. I also notice larger times for first frame but not as extreme as you are seeing! It seems that the yolo takes some time to setup, I do not have much informations about that. The first time I run the script it took me around 5 seconds to setup the yolo and run first inference. But running the scripts more times even the first frame takes <1 second. I also do climbing so I enjoy your use case, do you obtain decent results for this? I tried in the past and was not obtaining a very good pose.. Regarding question 2: Yes predicting only in the red area is possible and will lead to faster inference! especially if in the outer part of the image there are more poses... You can simply take the rectangle box on the image before passing it to the inference Edit: I never got the NMS message, it might have to do with your video. If you are able to share the input I can try on your particular example :) |
Hello, no worries! Yes, I also noticed that it only took that long after I restarted the Jupyter Notebook. If I just rerun the one cell it does not take that long anymore... The fact that it takes that long is probably because of my Hardware. I am working on a Laptop with a GTX 1050 and use CUDA 12.3. Oh, it's always lovely to meet fellow climbers. :) I have to say, that the higher the climber gets up the wall, the worse the results tend to get. However, VitPose (the large version) gave me the best results so far. I also tried VoloV8 Pose AlphaPose, OpenPose, and Pose model from Mediapipe and they were not as good. Thanks for the input and tips regarding question 2, I will try them out. Regarding the NMS message, I don't get that all the time either... but I have not yet figured out why that is the case... With the same video and settings, I sometimes get it and sometimes I don't... But I think this might be a YOLO issue. At least I got the warning as well when trying out YoloV8 Pose. |
I tried and I see what you mean with yolo loosing tracking. With such low threshold confidence the NMS error might be caused by the model finding many 'people' boxes (even around the same climber) and the the NMS failing. But yes that is related to yolo. One approach that might improve your yolo detection: if you know there's a single climber and is going up the wall you could use a box around the person at each frame (and in case of failure revert to full image or whatever). As you know the person proceeds slowly up the wall and will be very close in subsequent frames this might improve your results, making yolo (even with low confidence) search only around previous position. If I have the time I will conduct further tests using CUDA to check if I have such high slow downs on first frame as well. |
Hello,
I have two questions:
I am working in a jupyter notebook, a minimal version of it would look like this:
when executing the last cell, it takes quite some time (~10-20 sec) before anything happens. Do you know why that is the case?
I sometimes also get the following warning:
WARNING NMS time limit 0.550s exceeded, when it finally starts detecting in the first frame
The text was updated successfully, but these errors were encountered: