-
Notifications
You must be signed in to change notification settings - Fork 110
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
Running it on GPU on google collab ? #84
Comments
Hi @basicvisual , awesome! Are you willing to share the notebook so that I can add it to this repository (with proper referencing)? Regarding running it on GPU, have you changed the Colab "Runtime type" from CPU to GPU or TPU? Does it still run on CPU even choosing one of these options? In general, you can set the device you want to use when initializing |
Hi @stefanopini , its a very very experimental notebook. Let me have a look if i can make it better , as of now its just downloading the repo , adding the weights ( lot of manual steps) , Can i come back to you in some time with a better version or I can already send a link to the barebone version of the notebook. |
Sure! If you are willing to share the notebook, feel free to share it at your convenience/when you think it is ready! 🙂 Regarding the issue, that's weird. It should run on the GPU if available. |
Hi this is the link for the colab notebook , as mentioned its very early stage : here |
Wonderful, thank you! I've been able to have it working and it did run on GPU. In the next days/weeks, I'll continue working on it with the goal of adding it to this repository, thank you very much! |
Thank you . I think one of the steps which is manual , is pointing to the pre trained weights. I am wondering if one can mount the pre trained google drive then one can exclude manual download and upload to the weights. Another question or possibility is to see if multiple videos can be executed in one go ? like have a list of videos to process ? I think that would require changes in the live-demo.py code ? |
I think it is possible to mount a Google Drive folder, but it requires an API key, so it wouldn't be automatic also in this case. I'm afraid it would. But one could make a for loop on a list of file and call the |
I think that would be some what straight forward. I was wondering , we need to change the output.avi ( part of the code as well) Otherwise it will overwrite the video ( i think so ) |
Yes, definitely |
Hello, I have tried to rearrange the code provided by @basicvisual in a separate notebook here.
Details are given in the notebook. |
Wow, thank you! |
New, updated notebook supporting colab, testing also TensorRT and YOLOv5 added to the master branch! (See #100 ) |
Hi , I managed to run your code on google collab. It worked fine but it always choose the "CPU" as default value . I was wondering if there is a setting in the code that has to be changed in order to use the GPU ?
The text was updated successfully, but these errors were encountered: