Skip to content

Commit 824c23d

Browse files
committed
Update paths and remove ai-loader
1 parent 420c6dd commit 824c23d

File tree

7 files changed

+8
-51
lines changed

7 files changed

+8
-51
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ cluster.remote:6379> rg.pydumpreqs
7373

7474
## Import AI model and script
7575

76-
The loader script will load AI model and [PyTorch](https://pytorch.org/) script to the Redis database.
76+
To load AI model and [PyTorch](https://pytorch.org/) script to the Redis database run:
7777

7878
```bash
79-
cd src/
80-
python3 ai-loader.py -u redis://redis:6379
79+
cd ai/
80+
cat tiny-yolo-voc.pb | redis-cli -h redis -x AI.MODELSET yolo:model TF CPU INPUTS input OUTPUTS output BLOB
81+
cat ai-yolo-script.py| redis-cli -h redis -x AI.SCRIPTSET yolo:script CPU SOURCE
8182
```
8283

8384
## Start Grafana
@@ -99,10 +100,12 @@ Select `Camera Processing` dashboard and copy-paste `gears-yolo.py` script to Re
99100

100101
## Start Camera
101102

102-
Copy script `edge-camera.py` to IoT or any device with camera. Run script by specifying Redis URL, number of frames per second and rotate camera if required.
103+
Copy script `edge-camera.py` and `requirements.txt` to IoT or any device with camera. Run script by specifying Redis URL, number of frames per second and rotate camera if required.
103104

104105
```bash
105-
python3 camera.py -u redis://redis:6379 --fps 6 --rotate-90-clockwise true
106+
cd camera/
107+
pip3 install -r requirements.txt
108+
python3 edge-camera.py -u redis://redis:6379 --fps 6 --rotate-90-clockwise true
106109
```
107110

108111
You should see output with Stream's Id and size of the jpeg file.
File renamed without changes.

src/ai-loader.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)