-
Notifications
You must be signed in to change notification settings - Fork 80
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 the code with GPU #16
Comments
Thanks for your question! If you run the default GoundingDINO model with a SwinB backbone on a CPU, it can be very inefficient. Our code, by default, supports inference with GPU. Make sure you have the GPU correctly installed and select the corresponding inference device. |
Dear Siyuanliii Thanks for your respone. Actually, I tried my best to run the code under GPU, but it is not working unforetunatelly. All of needed steps to install GPU on my Anaconda (Windows version) have been done correctly. Sincerely |
I need more information to help you with this question. Have you installed the correct torch version for GPU? Have you done the check, for example, whether your GPU is available by |
Dear @siyuanliii Thank you for your response, After running this code "torch.cuda.is_available()", I get True. Also by running this code "torch.cuda.get_device_name()", I get the name of my gpu "NVIDIA RTX A2000 8GB Laptop GPU" When I run the following code from your code "python demo/video_demo_with_text.py demo/driving_10s.mp4 --out demo_outputs/driving_10s_outputs.mp4 --det_config projects/CO-DETR/configs/codino/co_dino_5scale_r50_lsj_8xb2_3x_coco.py --det_checkpoint saved_models/pretrain_weights/co_dino_5scale_lsj_r50_3x_coco-fe5a6829.pth --masa_config configs/masa-one/masa_r50_plug_and_play.py --masa_checkpoint saved_models/masa_models/masa_r50.pth --score-thr 0.3 --show_fps" The code is run like the below image on my Anaconda (Windows version). some warnings are appears. maybe this wrning are the cause of this gpu issue. |
Hi @DaneshShokri94
|
Dear @RecardoLyu Simply you can solve this problem. Firstly open the code of "video_demo_with_text.py" at the folder of "demo". Next, delete or comment the lines code of 8, 37,38,39,40,41,42 (actually this is a function). |
Hi, @siyuanliii @DaneshShokri94 @RecardoLyu @lkeab I am trying to run the demo using the custom detection model. However, I am facing some issues with the model and "import masa" line. Currently, I am using the collab notebook provided by Olsen (MASA-tracker-cleaner,ipynb). However, I am facing dependency issues with mmdet. Can you please provide any help or resources for the compatible versions for MASA, PyTorch, Cuda (11.8), model, etc? Or any use cases. Thank you |
Hello
follow the option 2 for installation of the packages
https://github.com/siyuanliii/masa/blob/main/docs/install.md
sincerely
Danesh
…On Wed, Feb 5, 2025 at 2:29 PM Ashish Reddy ***@***.***> wrote:
Hi, @siyuanliii <https://github.com/siyuanliii> @DaneshShokri94
<https://github.com/DaneshShokri94> @RecardoLyu
<https://github.com/RecardoLyu> @lkeab <https://github.com/lkeab>
I am trying to run the demo using the custom detection model. However, I
am facing some issues with the model and "import masa" line.
Currently, I am using the collab notebook provided by Olsen
(MASA-tracker-cleaner,ipynb). However, I am facing dependency issues with
mmdet. Can you please provide any help or resources for the compatible
versions for MASA, PyTorch, Cuda (11.8), model, etc? Or any use cases.
Thank you
Ashish
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASAEUSZ56M4HHMRUFO36AKL2OJRBNAVCNFSM6AAAAABWR3BFPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZXHA2DKOBZGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you, @DaneshShokri94 All good; I have set up the environment and am able to run well. |
Dear
First of all, I appreciate your work, that's awsome
I am running masa on the anaconda - windows. The code use almost all 32G RAM of my computer. it took around 45 minutes for analysing a 90 second video.
I would like to use 8g GPU of my computer for accelerating the computation time
Could you please help me how can I do this?
Sincerely
The text was updated successfully, but these errors were encountered: