-
Notifications
You must be signed in to change notification settings - Fork 192
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
AI basketball analysis on google colab #9
Comments
Hi @hardik0 Unfortunately, I'm not really familiar with the Google colab environment and I ran into some problem getting your project to work. |
For your problem, I have two advice to give you. Since I can't get your project into work, could you try it and tell me if it works?
|
|
Now I'm facing another issue. This problem occurs sometimes on some videos.
|
Hi @hardik0, I believe this is because of the lack of exception handling. I apologize for being lazy. This problem occurs because it couldn't get the required data from the input video, something went wrong with the calculation. To solve this problem, I suggest you to start testing it with sample analysis or any sample video in ./static/uploads directory. I have checked the program can definitely work with those videos. And I'm still working for the project to work with more variety of input videos. |
Hi @hardik0, somehow I still think this problem is because of TensorFlow is running with CPU, could you make sure that you have installed tensorflow-gpu? Also try to uninstall normal tensorflow before hosting it, this could avoid the project run with CPU. I uninstalled normal tensorflow and installed tensorflow-gpu, and I got a fairly huge improvement on the FPS. Although I don't know why it's still a little slower than my local GTX 1060(about 20 FPS), it should be workable. I don't know if you are satisfied with this efficiency. I'm still working on this project to change the model to YOLOv4, which should be able to significantly improve the efficiency.
Thanks a lot for telling me this! This sounds like bad news for me. Does this mean that no one could run my project without recompiling the whole OpenPose? (which takes about half an hour) |
Thanks! @chonyy,
As per my knowledge tensorflow 2.2.x comes with gpu support, but I also tried tensorflow-gpu version
I would love to see YOLOv4
Unfortunately Yes! Because we are using OpenPose with Python API if we use command line interface then no additional installation is required. |
Hi @hardik0 , is your problem solved?
I have run the code below in utils.py I uninstalled tensorflow and installed tensorflow-gpu and I run your project, I think the FPS is fairly enough(about 15 ~ 20). I wonder how laggy it was when you run it and how fast you expect it to be? |
I think the issue is not related to tensorflow, but something else |
Alright, I think I could finally reproduce your problem. Are you able to run my project on your local machine? (not on Google colab) I think this is because the **.ngrok.io website hosted by Google colab is somehow really unstable. Sometimes I could barely connect to the webpage, and even disconnected from it. This could explain why the video was processed, but not successfully rendering on the webpage. Unfortunately, I have no idea why this is happening. Maybe you could try to host a simple flask page with Google colab and check if there's any stability problem. |
I don't have a gpu I found out another way For cell output add this to app.py & use
and change path(/usr/local/python) in src/utils.py p.s - clone your repository |
Good to see you find a way to work around. Is this problem solved after trying this new method? Also, can I have your updated ipynb? I will really like to provide a link to your project in my README. This is truly a great work from you. And I'm so glad to see people appreciate my work and even try to make it better. |
hey @chonyy, |
hey @chonyy
OR AI-basketball-analysis-on-google-colab
I have tried this on google colab
check this out
i'm facing an issue on server(google colab) video was processed, but in web browser the video stream is lagging. Please help me to solve this issue.
Thanks! for the great work.
The text was updated successfully, but these errors were encountered: