Skip to content

Commit 7d32ee1

Browse files
Merge pull request #101 from suryam789/main
REGISTRY info update in ASC, LP and OA
2 parents 8d0c788 + 1b20fe2 commit 7d32ee1

File tree

7 files changed

+117
-24
lines changed

7 files changed

+117
-24
lines changed

docs_src/use-cases/automated-self-checkout/advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ The table below lists the environment variables (EVs) that can be used as inputs
7070
|`DOCKER_COMPOSE` | The docker-compose.yml file to run | src/docker-compose.yml |
7171
|`RETAIL_USE_CASE_ROOT` | The root directory for Automated Self Checkout in relation to the docker-compose.yml | .. |
7272
|`RESULTS_DIR` | Directory to output results | ../results |
73-
|`REGISTRY` | Option to pull the pre-built images rather than creating them locally | true |
7473

7574
=== "Docker Compose Parameters"
7675
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
9291
|`GST_DEBUG` | for running pipeline in gst debugging mode | 0, 1 |
9392
|`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) |
9493
|`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 |
9595
|`RENDER_MODE` | for displaying pipeline and overlay CV metadata | 1, 0 |
9696
|`PIPELINE_COUNT` | Number of Automated Self Checkout Docker container instances to launch | Ex: 1 |
9797
|`PIPELINE_SCRIPT` | Pipeline script to run. | yolo11n.sh, yolo11n_effnetb0.sh, yolo11n_full.sh |

docs_src/use-cases/automated-self-checkout/getting_started.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Getting Started
22

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+
316
## Step by step instructions:
417

518
1. Download the models using download_models/downloadModels.sh
@@ -20,13 +33,7 @@
2033
make download-sample-videos
2134
```
2235

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.
3037

3138
```bash
3239
make run-render-mode
@@ -37,6 +44,26 @@
3744
```bash
3845
make run-demo
3946
```
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:
63+
64+
```bash
65+
make run-demo REGISTRY=false
66+
```
4067

4168
6. Verify Docker containers
4269

docs_src/use-cases/automated-self-checkout/performance.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ make benchmark-quickstart
1515
```
1616
The above command would:<br>
1717
- Run headless (no display needed: `RENDER_MODE=0`)<br>
18+
- Pull pre-built images (`REGISTRY=true`)<br>
1819
- Use full pipeline (`PIPELINE_SCRIPT=obj_detection_age_prediction.sh`)<br>
1920
- Target GPU by default (`DEVICE_ENV=res/all-gpu.env`)<br>
2021
- Generate benchmark metrics<br>
@@ -52,7 +53,7 @@ List of EVs:
5253
|`PIPELINE_COUNT` | number of Automated Self Checkout Docker container instances to launch | Ex: 1 |
5354
|`PIPELINE_SCRIPT` | pipeline script to run. | yolo11n_effnetb0.sh, obj_detection_age_prediction.sh, etc. |
5455
|`DEVICE_ENV` | device to use for classification and detection | res/all-cpu.env, res/all-gpu.env, res/det-gpu_class-npu.env, etc. |
55-
|`REGISTRY` | option to pull pre-built images from registry rather than building them locally | true |
56+
|`REGISTRY` | option to pull pre-built images from registry rather than building them locally (by default:true) | false, true |
5657

5758
> **Note:**
5859
> Higher the `PIPELINE_COUNT`, higher the stress on the system.
@@ -86,10 +87,13 @@ make PIPELINE_SCRIPT=obj_detection_age_prediction.sh DEVICE_ENV=res/all-gpu.env
8687
Stream 1: Object detection + classification on retail video <br>
8788
Stream 2: Face detection + age/gender prediction on age prediction video
8889

89-
### Benchmark command to pull pre-built images
90+
### Benchmark command to build images locally
91+
92+
!!! Note
93+
By default the images are pulled from public repository.
9094

9195
```bash
92-
make REGISTRY=true PIPELINE_COUNT=1 benchmark
96+
make REGISTRY=false PIPELINE_COUNT=1 benchmark
9397
```
9498

9599

docs_src/use-cases/loss-prevention/advanced.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ make benchmark-quickstart
99
```
1010
The above command would:<br>
1111
- Run headless (no display needed: `RENDER_MODE=0`)<br>
12+
- Pull pre-built images (`REGISTRY=true`)<br>
1213
- Target GPU by default (`WORKLOAD_DIST=workload_to_pipeline_gpu.json`)<br>
1314
- Run 6 streams, each with different workload (`CAMERA_STREAM=camera_to_workload_full.json`)<br>
1415
- Generate benchmark metrics<br>
@@ -32,7 +33,7 @@ Runs with:<br>
3233
- `CAMERA_STREAM=camera_to_workload.json`<br>
3334
- `WORKLOAD_DIST=workload_to_pipeline.json`<br>
3435
- `PIPELINE_COUNT=1`<br>
35-
- `REGISTRY=false`<br>
36+
- `REGISTRY=true`<br>
3637

3738
You can override these values through the following Environment Variables.
3839

@@ -42,7 +43,7 @@ You can override these values through the following Environment Variables.
4243
|`PIPELINE_COUNT` | number of Loss Prevention Docker container instances to launch | Ex: 1 |
4344
|`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 |
4445
|`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 |
4647

4748
> **Note:**
4849
> Higher the `PIPELINE_COUNT`, higher the stress on the system.
@@ -99,11 +100,12 @@ You can override these values through the following Environment Variables.
99100
### Benchmark command with environment variable overrides
100101

101102
```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
103104
```
104105

105106
Runs with:<br>
106107
- `RENDER_MODE=0`<br>
108+
- `REGISTRY=false` (Builds images locally)<br>
107109
- `CAMERA_STREAM=camera_to_workload_full.json`<br>
108110
- `WORKLOAD_DIST=workload_to_pipeline_gpu-npu.json`<br>
109111
- `PIPELINE_COUNT=1`<br>
@@ -112,7 +114,7 @@ Runs with:<br>
112114
### See the benchmarking results
113115

114116
```sh
115-
make consolidate-metrics
117+
make consolidate-metrics
116118

117119
cat benchmark/metrics.csv
118120
```

docs_src/use-cases/loss-prevention/getting_started.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Getting Started
22

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+
316
## Step by step instructions:
417

518
1. Download the models using download_models/downloadModels.sh
@@ -28,19 +41,33 @@
2841

2942
**NOTE:- User can directly run single make command that internally called all above command and run the Loss Prevention application.**
3043

31-
5. Run Loss Prevention appliaction with single command.
44+
- Run Loss Prevention appliaction with single command.
3245

3346
```bash
3447
make run-lp
3548
```
3649

3750
- Running Loss Prevention application with ENV variables:
3851
```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
4053
```
41-
`REGISTRY=true`: pre-built images are pulled. <br>
4254
`CAMERA_STREAM=camera_to_workload_full.json`: runs all 6 workloads. <br>
4355
`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+
```
4471

4572
6. View the Dynamically Generated GStreamer Pipeline.
4673
>*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.*

docs_src/use-cases/order-accuracy/advanced.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ make benchmark-quickstart
99
```
1010
The above command would:<br>
1111
- Run headless (no display needed: `RENDER_MODE=0`)<br>
12+
- Pull pre-built images (`REGISTRY=true`)<br>
1213
- Target GPU by default (`DEVICE_ENV=res/all-gpu.env`)<br>
1314
- Generate benchmark metrics<br>
1415
- Run `make consolidate-metrics` automatically<br>
@@ -28,6 +29,7 @@ make benchmark
2829
```
2930
Runs with:<br>
3031
- `RENDER_MODE=0`<br>
32+
- `REGISTRY=true`<br>
3133
- `DEVICE_ENV=res/all-cpu.env`<br>
3234
- `PIPELINE_COUNT=1`<br>
3335

@@ -36,6 +38,7 @@ You can override these values through the following Environment Variables.
3638
| Variable | Description | Values |
3739
|:----|:----|:---|
3840
|`RENDER_MODE` | for displaying pipeline and overlay CV metadata | 1, 0 |
41+
|`REGISTRY` | to pull pre-built images from public registry | false, true |
3942
|`PIPELINE_COUNT` | number of Loss Prevention Docker container instances to launch | Ex: 1 |
4043
|`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 |
4144

@@ -53,10 +56,16 @@ make DEVICE_ENV=res/all-gpu.env benchmark
5356
make DEVICE_ENV=res/all-npu.env benchmark
5457
```
5558

59+
### Benchmark command to build images locally
60+
61+
```bash
62+
make REGISTRY=false benchmark
63+
```
64+
5665
## See the benchmarking results.
5766

5867
```sh
59-
make consolidate-metrics
68+
make consolidate-metrics
6069

6170
cat benchmark/metrics.csv
6271
```

docs_src/use-cases/order-accuracy/getting_started.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Getting Started
22

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+
316
## Step by step instructions:
417

518
1. Download the models using download_models/downloadModels.sh
@@ -26,12 +39,23 @@
2639
make run-render-mode
2740
```
2841

29-
**NOTE:- User can directly run single make command that internally called all above command and run the Order Accuracy application.**
30-
31-
5. Run Order Accuracy appliaction with single command.
32-
42+
- The above series of commands can be executed using only one command:
43+
44+
```bash
45+
make run-demo
46+
```
47+
48+
5. To build the images locally step by step:
49+
- Follow the following steps:
50+
```bash
51+
make download-models REGISTRY=false
52+
make update-submodules REGISTRY=false
53+
make download-sample-videos
54+
make run-render-mode REGISTRY=false
55+
```
56+
- The above series of commands can be executed using only one command:
3357
```bash
34-
make run-demo
58+
make run-demo REGISTRY=false
3559
```
3660

3761
6. Verify Docker containers

0 commit comments

Comments
 (0)