-
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
How to use Nuclio once I have deployed as plugin in CVAT? #2259
Comments
Hi Sam, I think this is up to date documentation (except for adding an extra compose configuration to start the nuclio server: https://github.com/openvinotoolkit/cvat/blob/develop/components/serverless/README.md This will be fixed soon). Does it answer your question? |
Hi @azhavoro Andrey. Sorry, I assumed that nuclio as a plugin removed the need to execute nuctl commands locally. Last week after some troubles (there is little information on the internet about installing and running nuctl commands in windows I managed to get nuctl running on windows. It had to be renamed to nuctl.exe for it to run.. but it seems useless because the commands fail. Here in CMD: Windows recognises nuctl And it fails in git bash However, both don't work. Please help. p.s When I bash into the nuclio container I don't have any permissions to explore any of the directories. Proof of all containers running (different ports for cvat vs nuclio) |
From what I know, it is because of the compatibility issue between Nuclio and WSL in Windows 10. Please see the below thread for more information |
hi @davodogster , can you please share the process for uploading the our own model like yolov4, faster rcnn which are trained on our own dataset. |
What I ended up doing to get the serverless nuclio project running was create the project from the nuclio dashboard (localhost:8070) and then modifying the function.yaml I imported into there with some wget commands to pull python3 (then chmod +x it) and model_loader.py and place them into /opt/nuclio/common/ folder (posted these files @ jackmd.com/nuclio/). Then combine the main.py and model_handler.py scripts and paste them into the Code box in the nuclio dashboard. Then deploy. Basically used the following to my function.yaml:
Clearly you'll need to tweak this but it works to do it this way. One other helpful tidbit ... to link a windows volume the only way I could get it to work was by placing the following in my docker-compose.override.yaml:
Make sure to change the 'source' to your local dir |
Thanks so much! @jackneil Will have to give that a try (it's a shame that it's a little tricky like that for Windows @nmanovic). Did you use it for a model or for one of CVATs auto segmentation tools like dextr? @Ironman1508 I think more documentation from CVAT will come on how to do it. In the older version of CVAT I converted maskrcnn and faster rcnn to openvino then just upload them to cvat but that's not possible in the new version. You have to install nuclio and depoy the models as serverless functions (I'm still learning about it and yet to do it successfully). CVAT has some documentation on it. Cheers |
It's setup to be able to run our custom model but I'm not sure how to convert our yolov4 model into the openvino files required. I actually just put whatever I want in the container onto a webserver (could use localhost server) and wget commands to pull it in during the function build. Had to do that since on windows I couldn't get nuctl to work
And apparently what I need are:
I think I have found how to convert the weights to the .pb format but at a loss for the rest. |
Hey @jackneil, Thanks for sharing the scripts and procedure for deploying via Nuclio Dashboard! FYI, I was wondering if you had used a custom model because I saw in the function.yml, the label_specs are updated, But the model used is yolov3-tf? Can you share some more light? Hope this helps! |
That should be helpful. I think I've looked at that project before but didn't see that last step taking it to .bin .xml and .mapping Currently I scripted the update of custom labels in the cvat yaml but it is still actually pulling the weights and models from the OMZ as you can see at the bottom of the yaml where it is calling the download.py methods. Once I have the right files to replace those I'll have it directly wget our files into the /opt/nuclio folder and update the .py nuclio handler files to (i imagine) to point to the right place |
@jackneil this might be a solution nuclio/nuclio#1821 . Also, sorry I've never converted YOLO models to openvino.. I thought nuclio/serverless removes the need for openvino conversion ? |
It would be great if any of you can note down some steps to deploy a custom model since I really need to add more classes to the existing yolov3 but don't know how do it... |
Hi @jackneil , are you able to deploy the custom model using your way? PS: my custom model based on darknet and tested with darknet test command which works as expected. Please let me know if I missed anything? |
Serverless tutorial is in progress #3124 |
Hi, I have deployed CVAT with nuclio as a plugin. Now how do I deploy dextr, f-brs, and my own models like maskrcnn and yolov5? I don't think any documentation exists for this yet?
I try to run nuctl commands in the nuclio container but I get an error
Also, this documentation seems outdated already ? https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/documentation/installation.md#semi-automatic-and-automatic-annotation
Regards, Sam
The text was updated successfully, but these errors were encountered: