You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs_src/use-cases/automated-self-checkout/advanced.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,6 @@ The table below lists the environment variables (EVs) that can be used as inputs
70
70
|`DOCKER_COMPOSE` | The docker-compose.yml file to run | src/docker-compose.yml |
71
71
|`RETAIL_USE_CASE_ROOT` | The root directory for Automated Self Checkout in relation to the docker-compose.yml | .. |
72
72
|`RESULTS_DIR` | Directory to output results | ../results |
73
-
|`REGISTRY` | Option to pull the pre-built images rather than creating them locally | true |
74
73
75
74
=== "Docker Compose Parameters"
76
75
This list of parameters that can be set when running docker compose up
@@ -92,6 +91,7 @@ The table below lists the environment variables (EVs) that can be used as inputs
92
91
|`GST_DEBUG` | for running pipeline in gst debugging mode | 0, 1 |
93
92
|`LOG_LEVEL` | log level to be set when running gst pipeline | ERROR, INFO, WARNING, and [more](https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c#the-debug-log) |
94
93
|`OCR_RECLASSIFY_INTERVAL` | time interval in seconds for OCR classification | Ex: 5 |
94
+
|`REGISTRY` | Option to pull the pre-built images rather than creating them locally (by default:true) | false, true |
95
95
|`RENDER_MODE` | for displaying pipeline and overlay CV metadata | 1, 0 |
96
96
|`PIPELINE_COUNT` | Number of Automated Self Checkout Docker container instances to launch | Ex: 1 |
Copy file name to clipboardExpand all lines: docs_src/use-cases/automated-self-checkout/getting_started.md
+34-7Lines changed: 34 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# Getting Started
2
2
3
+
### **NOTE:**
4
+
5
+
By default the application runs by pulling the pre-built images. If you want to build the images locally and then run the application, set the flag:
6
+
7
+
```bash
8
+
REGISTRY=false
9
+
10
+
usage: make <command> REGISTRY=false (applicable for all commands like benchmark, benchmark-stream-density..)
11
+
Example: make run-demo REGISTRY=false
12
+
```
13
+
14
+
(If this is the first time, it will take some time to download videos, models, docker images and build images)
15
+
3
16
## Step by step instructions:
4
17
5
18
1. Download the models using download_models/downloadModels.sh
@@ -20,13 +33,7 @@
20
33
make download-sample-videos
21
34
```
22
35
23
-
4. Build the demo Docker image
24
-
25
-
```bash
26
-
make build
27
-
```
28
-
29
-
5. Start Automated Self Checkout using the Docker Compose file. The Docker Compose also includes an RTSP camera simulator that will infinitely loop through the sample videos downloaded in step 3.
36
+
4. Start Automated Self Checkout using the Docker Compose file.
30
37
31
38
```bash
32
39
make run-render-mode
@@ -37,6 +44,26 @@
37
44
```bash
38
45
make run-demo
39
46
```
47
+
5. To build the images locally step by step:
48
+
- Follow the following steps:
49
+
```bash
50
+
make download-models REGISTRY=false
51
+
make update-submodules REGISTRY=false
52
+
make download-sample-videos
53
+
```
54
+
- Now build the pipeline-runner image locally:
55
+
```bash
56
+
make build REGISTRY=false
57
+
```
58
+
- Finally, start Automated self checkout using docker compose up.
59
+
```bash
60
+
make run-render-mode REGISTRY=false
61
+
```
62
+
- The above series of commands can be executed using only one command:
Copy file name to clipboardExpand all lines: docs_src/use-cases/loss-prevention/advanced.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ make benchmark-quickstart
9
9
```
10
10
The above command would:<br>
11
11
- Run headless (no display needed: `RENDER_MODE=0`)<br>
12
+
- Pull pre-built images (`REGISTRY=true`)<br>
12
13
- Target GPU by default (`WORKLOAD_DIST=workload_to_pipeline_gpu.json`)<br>
13
14
- Run 6 streams, each with different workload (`CAMERA_STREAM=camera_to_workload_full.json`)<br>
14
15
- Generate benchmark metrics<br>
@@ -32,7 +33,7 @@ Runs with:<br>
32
33
-`CAMERA_STREAM=camera_to_workload.json`<br>
33
34
-`WORKLOAD_DIST=workload_to_pipeline.json`<br>
34
35
-`PIPELINE_COUNT=1`<br>
35
-
-`REGISTRY=false`<br>
36
+
-`REGISTRY=true`<br>
36
37
37
38
You can override these values through the following Environment Variables.
38
39
@@ -42,7 +43,7 @@ You can override these values through the following Environment Variables.
42
43
|`PIPELINE_COUNT`| number of Loss Prevention Docker container instances to launch | Ex: 1 |
43
44
|`WORKLOAD_DIST`| to define how each workload is assigned to a specific processing unit (CPU, GPU, NPU) | workload_to_pipeline_cpu.json, workload_to_pipeline_gpu.json, workload_to_pipeline_gpu-npu.json, workload_to_pipeline_hetero.json, workload_to_pipeline.json |
44
45
|`CAMERA_STREAM`| to define camera settings and their associated workloads for the pipeline | camera_to_workload.json, camera_to_workload_full.json |
45
-
|`REGISTRY`| option to pull the pre-built images rather than creating them locally |true, false|
46
+
|`REGISTRY`| option to pull the pre-built images rather than creating them locally |false, true|
46
47
47
48
> **Note:**
48
49
> Higher the `PIPELINE_COUNT`, higher the stress on the system.
@@ -99,11 +100,12 @@ You can override these values through the following Environment Variables.
99
100
### Benchmark command with environment variable overrides
100
101
101
102
```bash
102
-
make benchmark WORKLOAD_DIST=workload_to_pipeline_gpu-npu.json CAMERA_STREAM=camera_to_workload_full.json
103
+
make benchmark WORKLOAD_DIST=workload_to_pipeline_gpu-npu.json CAMERA_STREAM=camera_to_workload_full.json REGISTRY=false
Copy file name to clipboardExpand all lines: docs_src/use-cases/loss-prevention/getting_started.md
+30-3Lines changed: 30 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# Getting Started
2
2
3
+
### **NOTE:**
4
+
5
+
By default the application runs by pulling the pre-built images. If you want to build the images locally and then run the application, set the flag:
6
+
7
+
```bash
8
+
REGISTRY=false
9
+
10
+
usage: make <command> REGISTRY=false (applicable for all commands like benchmark, benchmark-stream-density..)
11
+
Example: make run-lp REGISTRY=false
12
+
```
13
+
14
+
(If this is the first time, it will take some time to download videos, models, docker images and build images)
15
+
3
16
## Step by step instructions:
4
17
5
18
1. Download the models using download_models/downloadModels.sh
@@ -28,19 +41,33 @@
28
41
29
42
**NOTE:- User can directly run single make command that internally called all above command and run the Loss Prevention application.**
30
43
31
-
5. Run Loss Prevention appliaction with single command.
44
+
- Run Loss Prevention appliaction with single command.
32
45
33
46
```bash
34
47
make run-lp
35
48
```
36
49
37
50
- Running Loss Prevention application with ENV variables:
38
51
```bash
39
-
REGISTRY=true CAMERA_STREAM=camera_to_workload_full.json WORKLOAD_DIST=workload_to_pipeline_cpu.json make run-lp
52
+
CAMERA_STREAM=camera_to_workload_full.json WORKLOAD_DIST=workload_to_pipeline_cpu.json make run-lp
40
53
```
41
-
`REGISTRY=true`: pre-built images are pulled. <br>
42
54
`CAMERA_STREAM=camera_to_workload_full.json`: runs all 6 workloads. <br>
43
55
`WORKLOAD_DIST=workload_to_pipeline_cpu.json`: all workloads run on CPU. <br>
56
+
57
+
5. To build the images locally step by step:
58
+
- Follow the following steps:
59
+
```bash
60
+
make download-models REGISTRY=false
61
+
make update-submodules REGISTRY=false
62
+
make download-sample-videos
63
+
make run-render-mode REGISTRY=false
64
+
```
65
+
66
+
- The above series of commands can be executed using only one command:
67
+
68
+
```bash
69
+
make run-lp REGISTRY=false
70
+
```
44
71
45
72
6. View the Dynamically Generated GStreamer Pipeline.
46
73
>*Since the GStreamer pipeline is generated dynamically based on the provided configuration(camera_to_workload and workload_to_pipeline json), the pipeline.sh file gets updated every time the user runs make run-lp or make benchmark. This ensures that the pipeline reflects the latest changes.*
Copy file name to clipboardExpand all lines: docs_src/use-cases/order-accuracy/advanced.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ make benchmark-quickstart
9
9
```
10
10
The above command would:<br>
11
11
- Run headless (no display needed: `RENDER_MODE=0`)<br>
12
+
- Pull pre-built images (`REGISTRY=true`)<br>
12
13
- Target GPU by default (`DEVICE_ENV=res/all-gpu.env`)<br>
13
14
- Generate benchmark metrics<br>
14
15
- Run `make consolidate-metrics` automatically<br>
@@ -28,6 +29,7 @@ make benchmark
28
29
```
29
30
Runs with:<br>
30
31
-`RENDER_MODE=0`<br>
32
+
-`REGISTRY=true`<br>
31
33
-`DEVICE_ENV=res/all-cpu.env`<br>
32
34
-`PIPELINE_COUNT=1`<br>
33
35
@@ -36,6 +38,7 @@ You can override these values through the following Environment Variables.
36
38
| Variable | Description | Values |
37
39
|:----|:----|:---|
38
40
|`RENDER_MODE`| for displaying pipeline and overlay CV metadata | 1, 0 |
41
+
|`REGISTRY`| to pull pre-built images from public registry | false, true |
39
42
|`PIPELINE_COUNT`| number of Loss Prevention Docker container instances to launch | Ex: 1 |
40
43
|`DEVICE_ENV`| path to device specific environment file that will be loaded into the pipeline container | res/all-cpu.env, res/all-gpu.env, res/all-npu.env, res/all-dgpu.env |
41
44
@@ -53,10 +56,16 @@ make DEVICE_ENV=res/all-gpu.env benchmark
0 commit comments