-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.45 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "2.3"
services:
style-transfer:
image: style_transfer:0.5
build: .
volumes:
- .:/opt/workspace
- ${PICTURE_DATASET}:/opt/picture_dataset
- ${ART_DATASET}:/opt/style_dataset
- ${EXPERIMENT}:/opt/experiment
environment:
- PICTURE_DATASET=/opt/picture_dataset
- ART_DATASET=/opt/art_dataset
- EXPERIMENT=/opt/experiment
runtime: nvidia
user: 1000:1000
export:
image: style_transfer:0.4
build: .
volumes:
- .:/opt/workspace
- ${CKPT_DIR_PATH}:/opt/saved/
- ${EXPORT_MODEL_PATH}:/opt/export
runtime: nvidia
user: 1000:1000
export_tflite:
image: style_transfer:0.4
build: .
volumes:
- .:/opt/workspace
- ${CKPT_DIR_PATH}:/opt/saved/
- ${EXPORT_MODEL_PATH}:/opt/export
runtime: nvidia
user: 1000:1000
environment:
- CUDA_VISIBLE_DEVICES=
inference:
image: style_transfer:0.4
build: .
volumes:
- .:/opt/workspace
- ${EXPORT_MODEL_PATH}:/opt/export
- ${INPUT_DIR}:/opt/input
- ${OUTPUT_DIR}:/opt/output
runtime: nvidia
user: 1000:1000
command: python3 app.py inference
inference_tflite:
image: style_transfer:0.4
build: .
volumes:
- .:/opt/workspace
- ${EXPORT_MODEL_PATH}:/opt/export/model.tflite
- ${INPUT_DIR}:/opt/input
- ${OUTPUT_DIR}:/opt/output
runtime: nvidia
user: 1000:1000
environment:
- CUDA_VISIBLE_DEVICES=