File tree 5 files changed +103
-3
lines changed 5 files changed +103
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Docker
6
6
7
+ Pull dependencies
8
+
7
9
``` shell
8
- git clone https://github.com/aslafy-z/yolo-object-detection-samples ./samples
10
+ git lfs clone https://github.com/aslafy-z/yolo-object-detection-samples ./samples
9
11
docker pull ghcr.io/aslafy-z/yolo-object-detection-cli:main
12
+ ```
13
+
14
+ Run with CPU support:
15
+
16
+ ``` shell
10
17
docker run -it --rm \
11
18
-v $PWD /samples/data:/samples \
12
19
-p 8000:8000 \
13
20
ghcr.io/aslafy-z/yolo-object-detection-cli:main \
14
21
--source=/samples/shop.mp4
15
22
```
16
23
17
- > Note: To run with the nvidia runtime, add ` --ipc=host --gpus all ` to the ` docker run ` command.
24
+ Run with GPU support:
25
+
26
+ ``` shell
27
+ docker run -it --rm \
28
+ -v $PWD /samples/data:/samples \
29
+ -p 8000:8000 \
30
+ --ipc=host --gpus=all --runtime=nvidia --security-opt systempaths=unconfined \
31
+ ghcr.io/aslafy-z/yolo-object-detection-cli:main \
32
+ --source=/samples/shop.mp4 \
33
+ --device=cuda:0
34
+ ```
18
35
19
36
### System
20
37
Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ dependencies = [
20
20
" paho-mqtt==2.1.0" ,
21
21
" scikit-image==0.21.0" ,
22
22
" pytubefix>=6.5.2" ,
23
+ " onnxslim==0.1.43" ,
23
24
]
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ lapx==0.5.11
8
8
paho-mqtt==2.1.0
9
9
scikit-image==0.21.0
10
10
pytubefix>=6.5.2
11
+ onnxslim==0.1.43
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ numpy==1.23.5
66
66
# imageio
67
67
# lapx
68
68
# matplotlib
69
+ # onnx
69
70
# opencv-python
70
71
# pandas
71
72
# pywavelets
@@ -107,6 +108,10 @@ nvidia-nvjitlink-cu12==12.6.85
107
108
# nvidia-cusparse-cu12
108
109
nvidia-nvtx-cu12 == 12.1.105
109
110
# via torch
111
+ onnx == 1.17.0
112
+ # via onnxslim
113
+ onnxslim == 0.1.43
114
+ # via yolo-object-detection-cli (pyproject.toml)
110
115
opencv-python == 4.8.1.78
111
116
# via
112
117
# yolo-object-detection-cli (pyproject.toml)
@@ -115,6 +120,7 @@ packaging==24.2
115
120
# via
116
121
# lazy-loader
117
122
# matplotlib
123
+ # onnxslim
118
124
# scikit-image
119
125
paho-mqtt == 2.1.0
120
126
# via yolo-object-detection-cli (pyproject.toml)
@@ -129,6 +135,8 @@ pillow==10.4.0
129
135
# scikit-image
130
136
# torchvision
131
137
# ultralytics
138
+ protobuf == 5.29.1
139
+ # via onnx
132
140
psutil == 6.1.0
133
141
# via ultralytics
134
142
py-cpuinfo == 9.0.0
@@ -172,7 +180,9 @@ sniffio==1.3.1
172
180
starlette == 0.27.0
173
181
# via fastapi
174
182
sympy == 1.13.3
175
- # via torch
183
+ # via
184
+ # onnxslim
185
+ # torch
176
186
tifffile == 2023.7.10
177
187
# via scikit-image
178
188
torch == 2.1.2
You can’t perform that action at this time.
0 commit comments