-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added YOLOv5 serverless function for auto labeling #4178
Added YOLOv5 serverless function for auto labeling #4178
Conversation
@wartek69 , thanks for the contribution! Could you please add information about the model into README as well? https://github.com/openvinotoolkit/cvat#deep-learning-serverless-functions-for-automatic-labeling |
@nmanovic I've added the model to the readme! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution! Many users asked about YOLOv5 support.
I would like to add that if you want to deploy a custom model you should:
#Line 11
model_path = "/opt/nuclio/common/weights.pt"
model = torch.hub.load('ultralytics/yolov5', 'custom', path = model_path) # or yolov5m, yolov5l, yolov5x, custom
|
@martinerk0 , could you please send us a PR with necessary updates for documentation? |
hi how did you run this command.
i cannot run it on windows 10. It throws an errors like this:
|
Hi, how i can copy my weights to /serversless/common? |
Just copy in your os filesystem, cvat mount the entire folder into the docker container |
How to clean up disk space by automatically annotating whether it will occupy a large amount of disk space |
Motivation and context
Integration of YOLOv5 as a serverless nuclio function that can be used for auto-labeling. Ultralytics has released YOLOv5 a while ago and it's one of the most used computer vision libraries and therefore it would make sense to support it in CVAT. The integration is quite simple into CVAT as Ultralytics maintains a Pytorch Hub model (ultralytics/yolov5#36) and a docker image (https://hub.docker.com/r/ultralytics/yolov5).
Related issues from ultralytics repo: ultralytics/yolov5#5427
How has this been tested?
Automatic annotation was run using YOLOv5 on a custom dataset.
The serverless function was deployed using
Then using the 'Automatic annotation' action the function was tested and the auto-generated labels were controlled to check that no coordinates misfit is happening.
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.