Skip to content
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

Unable to load the YOLOv5 on to the GPU #4851

Closed
2 tasks done
yasakova-anastasia opened this issue Aug 26, 2022 · 0 comments · Fixed by #4960
Closed
2 tasks done

Unable to load the YOLOv5 on to the GPU #4851

yasakova-anastasia opened this issue Aug 26, 2022 · 0 comments · Fixed by #4960

Comments

@yasakova-anastasia
Copy link
Contributor

My actions before raising this issue

I have been trying to integrate the model yolov5m trained on Objects365 - https://github.com/ultralytics/yolov5/releases/download/v6.0/yolov5m_Objects365.pt onto the GPU on CVAT

Expected Behaviour

The custom YOLOv5 model to be accessed on the CVAT and be used for annotation using GPU.

Current Behaviour

The building fails and unable to load onto the GPU on CVAT. When deploying on CPU, it works. But not sure of the changes to be made to deploy using GPU
image

Steps to Reproduce (for bugs)

  • function-gpu.yaml -
    Changed the base image which was configured for CUDA version 10.2
    image

  • function-gpu.yaml
    Added the pip install requirements and the torch and torchvision and download the model.
    image

The requirements are from here - https://github.com/ultralytics/yolov5/blob/master/requirements.txt

  • function-gpu.yaml
    The resources for GPU and changed the maxWorkers for triggers to 1 as read in one of the previous issues.
    image

  • main.py
    Access the downloaded weights file and load to the available cuda device (in my case, 1 GPU) and continue with inference.
    image

Context

I am unable to resolve this issue no matter the changes I make in the main.py file or the function-gpu.yaml.

Your Environment

image

image

Thank you for your kind help. Looking forward to any help/guidelines to solve the issue.

Issue by @gd1925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant