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: build/README.md
+91-9
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
##DeepDetect Docker images
1
+
# DeepDetect Docker images
2
2
3
3
This repository contains the Dockerfiles for building the CPU and GPU images for deepdetect.
4
4
@@ -10,7 +10,7 @@ The docker images contain:
10
10
11
11
This allows to run the container and set an image classification model based on deep (residual) nets in two short command line calls.
12
12
13
-
###Getting and running official images
13
+
## Getting and running official images
14
14
15
15
```
16
16
docker pull jolibrain/deepdetect_cpu
@@ -20,7 +20,7 @@ or
20
20
docker pull jolibrain/deepdetect_gpu
21
21
```
22
22
23
-
####Running the CPU image
23
+
### Running the CPU image
24
24
25
25
```
26
26
docker run -d -p 8080:8080 jolibrain/deepdetect_cpu
@@ -48,7 +48,7 @@ curl -X POST "http://localhost:8080/predict" -d "{\"service\":\"imageserv\",\"pa
48
48
{"status":{"code":200,"msg":"OK"},"head":{"method":"/predict","time":852.0,"service":"imageserv"},"body":{"predictions":{"uri":"http://i.ytimg.com/vi/0vxOhd4qlnA/maxresdefault.jpg","classes":[{"prob":0.2255125343799591,"cat":"n03868863 oxygen mask"},{"prob":0.20917612314224244,"cat":"n03127747 crash helmet"},{"last":true,"prob":0.07399296760559082,"cat":"n03379051 football helmet"}]}}}
49
49
```
50
50
51
-
####Running the GPU image
51
+
### Running the GPU image
52
52
53
53
This requires [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) in order for the local GPUs to be made accessible by the container.
54
54
@@ -75,7 +75,7 @@ curl -X POST "http://localhost:8080/predict" -d "{\"service\":\"imageserv\",\"pa
75
75
76
76
Try the `POST` call twice: first time loads the net so it takes slightly below a second, then second call should yield a `time` around 100ms as reported in the output JSON.
where `path/to/volume` is the path to your local volume that you'd like to attach to `/opt/deepdetect/`. This is useful for sharing / saving models, etc...
114
114
115
-
#### Building an image
115
+
##Build Deepdetect Docker images
116
116
117
-
Example goes with the CPU image:
117
+
Dockerfiles are presents on project root folder.
118
+
119
+
We choose to prefix Dockerfiles with target architecture :
120
+
* cpu-armv7.Dockerfile
121
+
* cpu.Dockerfile
122
+
* gpu.Dockerfile
123
+
124
+
### Build script
125
+
126
+
Build script is avaliable in docker path : build/build.sh
0 commit comments