File tree Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 1
1
FROM yummybian/docker-darknet:latest
2
2
3
- ENV KAI-REPO kai-repo
4
3
5
4
# Working directory
6
5
WORKDIR /kai-service
7
6
8
- go get https://github.com/ZanLabs/kai.git
9
-
10
7
# Download And Install Kai
11
- RUN git clone https://github.com/ZanLabs/kai.git KAI-REPO && \
12
- cd KAI-REPO && \
13
- go install && \
14
- mv kai .. && \
15
- mv cfg .. && \
16
- mv data .. && \
17
- mv config.yaml .. && \
18
- cd .. && \
19
- rm -rf KAI-REPO
8
+ RUN go get -u github.com/ZanLabs/kai && \
9
+ go install github.com/ZanLabs/kai && \
10
+ cp /go/bin/kai ./kai
11
+
12
+ # Copy configurations
13
+ RUN cp -Ra /go/src/github.com/ZanLabs/kai/cfg ./ && \
14
+ cp -Ra /go/src/github.com/ZanLabs/kai/data ./ && \
15
+ cp /go/src/github.com/ZanLabs/kai/config.yaml ./config.yaml
20
16
21
17
# Download weights
22
18
RUN curl -O http://pjreddie.com/media/files/yolo.weights >/dev/null 2>&1
23
19
24
- CMD [ "./kai" ]
25
-
26
-
20
+ EXPOSE 8000
27
21
22
+ ENTRYPOINT [ "./kai" ]
Original file line number Diff line number Diff line change 12
12
- support S3 download and upload
13
13
- support Ftp download and upload
14
14
15
+ ## Precondition
16
+ - nvidia-docker 2.0
17
+ - CUDA
18
+ - cudnn
19
+
20
+ ## Docker
21
+ ``` bash
22
+ git pull yummybian/kai
23
+ sudo docker run --runtime nvidia -it --rm -p 8000:8000 -v /path/to/config.yaml:/kai-service/config.yaml yummybian/kai bash
24
+ or
25
+ sudo docker run --runtime nvidia -d --name kai -p 8000:8000 -v /path/to/config.yaml:/kai-service/config.yaml yummybian/kai
26
+ ```
27
+
15
28
## Setting Up
16
29
17
30
First make sure you have [ go-yolo] ( https://github.com/ZanLabs/go-yolo ) installed on your machine.
You can’t perform that action at this time.
0 commit comments