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

Documentation update, adding solutions of the problems to a serverless tutorial #3472

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ semi-automatic and automatic annotation'
- You have to install `nuctl` command line tool to build and deploy serverless
functions. Download [version 1.5.16](https://github.com/nuclio/nuclio/releases/tag/1.5.16).
It is important that the version you download matches the version in
[docker-compose.serverless.yml](https://github.com/openvinotoolkit/cvat/blob/develop/components/serverless/docker-compose.serverless.yml)
[docker-compose.serverless.yml](https://github.com/openvinotoolkit/cvat/blob/develop/components/serverless/docker-compose.serverless.yml).
For example, using wget.

```
wget https://github.com/nuclio/nuclio/releases/download/<version>/nuctl-<version>-linux-amd64
```

After downloading the nuclio, give it a proper permission and do a softlink

```
Expand Down
45 changes: 42 additions & 3 deletions site/content/en/docs/manual/advanced/serverless-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,42 @@ $ docker logs nuclio-nuclio-pth.shiyinzhang.iog

</details>

If before model deployment you see that the `NODE PORT` is 0, you need to assign it manually.
Add the `port: 32001` attribute to the `function.yaml` file of each model, before you deploy the model.
Different ports should be prescribed for different models.

```diff
triggers:
myHttpTrigger:
maxWorkers: 1
kind: 'http'
workerAvailabilityTimeoutMilliseconds: 10000
attributes:
+ port: 32001
maxRequestBodySize: 33554432 # 32MB
```

### Installation serverless functions on Windows 10 with using the Ubuntu subsystem

If you encounter a problem running serverless functions on Windows 10,
you can use the Ubuntu subsystem, for this do the following:

1. Install `WSL 2` and `Docker Desktop` as described in [installation manual][cvat-installation-guide-windows-10]

1. Install [Ubuntu 18.04 from Microsoft store][ubuntu-1804-microsoft-store].

1. Enable integration for Ubuntu-18.04 in the settings of `Docker Desktop` in the `Resources` `WSL integration` tab:

![Docker WSL integration Ubuntu 18.04](/images/docker_wsl_integration.jpg)

1. Then you can download and install `nuctl` on Ubuntu,
using the [automatic annotation guide][cvat-auto-annotation-guide].

1. Install `git` and clone repository on Ubuntu,
as described in the [installation manual][cvat-installation-guide-ubuntu-1804].

1. After that, run the commands from this tutorial through Ubuntu.

[detectron2-github]: https://github.com/facebookresearch/detectron2
[detectron2-requirements]: https://detectron2.readthedocs.io/en/latest/tutorials/install.html
[pytorch-install]: https://pytorch.org/get-started/locally/
Expand All @@ -912,13 +948,16 @@ $ docker logs nuclio-nuclio-pth.shiyinzhang.iog
[retinanet-main-py]: https://github.com/openvinotoolkit/cvat/blob/b2f616859ca64687c385e636b4a25014fbb9d17c/serverless/pytorch/facebookresearch/detectron2/retinanet/nuclio/main.py
[nuclio-homepage]: https://nuclio.io/
[cvat-builtin-serverless]: https://github.com/openvinotoolkit/cvat/tree/develop/serverless
[cvat-auto-annotation-guide]: https://openvinotoolkit.github.io/cvat/docs/administration/advanced/installation_automatic_annotation
[cvat-auto-annotation-guide]: /docs/administration/advanced/installation_automatic_annotation
[cvat-installation-guide-windows-10]: /docs/administration/basics/installation/#windows-10
[cvat-installation-guide-ubuntu-1804]: /docs/administration/basics/installation/#ubuntu-1804-x86_64amd64
[mscoco-format]: https://cocodataset.org/#format-data
[pascal-voc-format]: http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/index.html
[faas-wiki]: https://en.wikipedia.org/wiki/Function_as_a_service
[cvat-ai-tools-user-guide]: https://openvinotoolkit.github.io/cvat/docs/manual/advanced/ai-tools/
[cvat-ai-tools-user-guide]: /docs/manual/advanced/ai-tools/
[cvat-github]: https://github.com/openvinotoolkit/cvat
[siammask-serverless]: https://github.com/openvinotoolkit/cvat/tree/develop/serverless/pytorch/foolwood/siammask/nuclio
[vtest-avi]: https://github.com/opencv/opencv/blob/master/samples/data/vtest.avi?raw=true
[intel-openvino-url]: https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html
[cvat-auto-annotation-user-guide]: https://openvinotoolkit.github.io/cvat/docs/manual/advanced/automatic-annotation/
[cvat-auto-annotation-user-guide]: /docs/manual/advanced/automatic-annotation/
[ubuntu-1804-microsoft-store]: https://www.microsoft.com/en-us/p/ubuntu-1804-lts/9n9tngvndl3q
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.