Skip to content

Commit 1dbace0

Browse files
committed
Proofreading and meta.yaml addition
1 parent 8c71e0b commit 1dbace0

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

pages/platform/ai/deploy_tuto_13_streamlit_yolov7/guide.en-gb.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: deploy/tuto-streamlit-yolov7-sign-language
44
excerpt: How to build a sign language recognition app with Streamlit
55
section: AI Deploy - Tutorials
66
order: 13
7-
updated: 2023-03-31
7+
updated: 2023-04-03
88
---
99

10-
**Last updated 31th March, 2023.**
10+
**Last updated 3rd April, 2023.**
1111

1212
## Objective
1313

@@ -17,18 +17,18 @@ In order to do this, you will use [Streamlit](https://streamlit.io/), a Python f
1717

1818
For more information on how to train YOLOv7 on a custom dataset, refer to the following [documentation](https://docs.ovh.com/gb/en/publiccloud/ai/notebooks/yolov7-sign-language/).
1919

20-
Overview of the Sign Language recognition app:
20+
Here is an overview of the Sign Language recognition app:
2121

2222
![Overview](images/overview-streamlit-yolov7-asl.png){.thumbnail}
2323

2424
## Requirements
2525

26-
- access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.co.uk/&ovhSubsidiary=GB)
27-
- an AI Deploy project created inside a Public Cloud project
28-
- a [user for AI Deploy](https://docs.ovh.com/gb/en/publiccloud/ai/users)
26+
- Access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.co.uk/&ovhSubsidiary=GB)
27+
- An AI Deploy project created inside a Public Cloud project
28+
- A [user for AI Deploy](https://docs.ovh.com/gb/en/publiccloud/ai/users)
2929
- [Docker](https://www.docker.com/get-started) installed on your local computer
30-
- some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/)
31-
- your weights obtained from training YOLOv7 model on the [ASL letters dataset](https://public.roboflow.com/object-detection/american-sign-language-letters/1) (refer to the *"Export trained weights for future inference"* part of the [notebook for YOLOv7](https://github.com/ovh/ai-training-examples/blob/main/notebooks/computer-vision/object-detection/miniconda/yolov7/notebook_object_detection_yolov7_asl.ipynb)
30+
- Some knowledge about building image and [Dockerfile](https://docs.docker.com/engine/reference/builder/)
31+
- Your weights obtained from training YOLOv7 model on the [ASL letters dataset](https://public.roboflow.com/object-detection/american-sign-language-letters/1) (refer to the *"Export trained weights for future inference"* part of the [notebook for YOLOv7](https://github.com/ovh/ai-training-examples/blob/main/notebooks/computer-vision/object-detection/miniconda/yolov7/notebook_object_detection_yolov7_asl.ipynb)
3232

3333
## Instructions
3434

@@ -37,6 +37,7 @@ You are going to follow different steps to build your Streamlit application.
3737
- More information about Streamlit capabilities can be found [here](https://docs.streamlit.io/en/stable/).
3838
- Direct link to the full Python script can be found [here](https://github.com/ovh/ai-training-examples/blob/main/apps/streamlit/sign-language-recognition-yolov7-app/main.py).
3939

40+
> [!warning]
4041
> **Warning**
4142
> You must have previously created an `asl-volov7-model` Object Storage container when training your model via [AI Notebooks](https://docs.ovh.com/gb/en/publiccloud/ai/notebooks/yolov7-sign-language/).
4243
>
@@ -215,11 +216,12 @@ Launch the following command from the **Dockerfile** directory to build your app
215216
docker build . -t yolov7-streamlit-asl-recognition:latest
216217
```
217218

218-
> **Note**
219-
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
220-
221-
> **Note**
222-
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **yolov7-streamlit-asl-recognition:latest**.
219+
> [!primary]
220+
> **Notes**
221+
>
222+
> - The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
223+
>
224+
> - The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **yolov7-streamlit-asl-recognition:latest**.
223225
224226
### Test it locally (optional)
225227

@@ -229,16 +231,18 @@ Launch the following **Docker command** to launch your application locally on yo
229231
docker run --rm -it -p 8501:8051 --user=42420:42420 yolov7-streamlit-asl-recognition:latest
230232
```
231233

232-
> **Note**
233-
> The `-p 8501:8501` argument indicates that you want to execute a port redirection from the port **8501** of your local machine into the port **8501** of the Docker container. The port **8501** is the default port used by **Streamlit** applications.
234-
235-
> **Note**
236-
> Don't forget the `--user=42420:42420` argument if you want to simulate the exact same behaviour that will occur on **AI Deploy apps**. It executes the Docker container as the specific OVHcloud user (user **42420:42420**).
234+
> [!primary]
235+
> **Notes**
236+
>
237+
> - The `-p 8501:8501` argument indicates that you want to execute a port redirection from the port **8501** of your local machine into the port **8501** of the Docker container. The port **8501** is the default port used by **Streamlit** applications.
238+
>
239+
> - Don't forget the `--user=42420:42420` argument if you want to simulate the exact same behaviour that will occur on **AI Deploy apps**. It executes the Docker container as the specific OVHcloud user (user **42420:42420**).
237240
238241
Once started, your application should be available on `http://localhost:8501`.
239242

240243
### Push the image into the shared registry
241244

245+
> [!warning]
242246
> **Warning**
243247
> The shared registry of AI Deploy should only be used for testing purpose. Please consider attaching your own Docker registry. More information about this can be found [here](https://docs.ovh.com/gb/en/publiccloud/ai/training/add-private-registry).
244248
@@ -272,16 +276,16 @@ ovhai app run <shared-registry-address>/yolov7-streamlit-asl-recognition:latest
272276
--volume asl-volov7-model@GRA/:/workspace/asl-volov7-model:RO
273277
```
274278

275-
> **Note**
276-
> `--default-http-port 8501` indicates that the port to reach on the app URL is the `8501`.
277-
278-
> **Note**
279-
> `--gpu 1` indicates that we request 4 CPUs for that app.
280-
281-
> **Note**
282-
> Consider adding the `--unsecure-http` attribute if you want your application to be reachable without any authentication.
279+
> [!primary]
280+
> **Notes**
281+
>
282+
> - `--default-http-port 8501` indicates that the port to reach on the app URL is `8501`.
283+
>
284+
> - `--gpu 1` indicates that we request 4 CPUs for that app.
285+
>
286+
> - Consider adding the `--unsecure-http` attribute if you want your application to be reachable without any authentication.
283287
284288
## Go further
285289

286-
- You can imagine deploying an app using YOLO models with an other Python framework: **Flask**. Refer to this [tutorial](https://docs.ovh.com/gb/en/publiccloud/ai/deploy/web-service-yolov5/).
290+
- You can imagine deploying an app using YOLO models with another Python framework: **Flask**. Refer to this [tutorial](https://docs.ovh.com/gb/en/publiccloud/ai/deploy/web-service-yolov5/).
287291
- Feel free to use **Streamlit** for other AI tasks! Deploy a Speech-to-Text app [here](https://docs.ovh.com/gb/en/publiccloud/ai/deploy/tuto-streamlit-speech-to-text-app/).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id: 3af146a2-5a33-4df8-b265-60f8dffbbd32
2+
full_slug: public-cloud-ai-deploy-streamlit-yolov7-sign-language

pages/platform/ai/notebook_tuto_11_yolov7/guide.en-gb.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: notebooks/yolov7-sign-language
44
excerpt: How to train the YOLOv7 model on a custom dataset with AI Notebooks
55
section: AI Notebooks - Tutorials
66
order: 11
7-
updated: 2023-03-10
7+
updated: 2023-04-03
88
---
99

10-
**Last updated 31th March, 2023.**
10+
**Last updated 3rd April, 2023.**
1111

1212
## Objective
1313

@@ -41,7 +41,7 @@ If you want to create it from the [OVHcloud Control Panel](https://www.ovh.com/a
4141

4242
![image](images/new-object-container.png){.thumbnail}
4343

44-
If you want to run it with the CLI, just follow this [guide](https://docs.ovh.com/gb/en/publiccloud/ai/cli/access-object-storage-data). You have to choose the region, the name of your container and the path where your data is located and use the following command:
44+
If you want to run it with the CLI, just follow this [guide](https://docs.ovh.com/gb/en/publiccloud/ai/cli/access-object-storage-data). You have to choose the region, the name of your container and the path where your data is located and use the following commands.
4545

4646
> [!warning]
4747
>
@@ -102,7 +102,7 @@ You can then reach your notebook’s URL once it is running.
102102

103103
### Experimenting YOLOv7 notebook
104104

105-
You are know able to train the YOLOv7 model to recognize sign language!
105+
You are now able to train the YOLOv7 model to recognize sign language!
106106

107107
A preview of this notebook can be found on GitHub [here](https://github.com/ovh/ai-training-examples/blob/main/notebooks/computer-vision/object-detection/miniconda/yolov7/notebook_object_detection_yolov7_asl.ipynb).
108108

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id: 6def6fdf-a62d-480d-8bdf-ce433f86cffa
2+
full_slug: public-cloud-ai-notebooks-yolov7-sign-language

0 commit comments

Comments
 (0)