Spaces:
Runtime error
Runtime error
Soutrik
commited on
Commit
•
beb5662
1
Parent(s):
8750395
dvc repro
Browse files- docker-compose.yaml +10 -5
- dvc.yaml +27 -0
docker-compose.yaml
CHANGED
@@ -15,17 +15,17 @@ services:
|
|
15 |
environment:
|
16 |
- PYTHONUNBUFFERED=1
|
17 |
- PYTHONPATH=/app
|
18 |
-
shm_size: '4g'
|
19 |
networks:
|
20 |
- default
|
21 |
env_file:
|
22 |
- .env
|
23 |
-
|
24 |
eval:
|
25 |
build:
|
26 |
context: .
|
27 |
command: |
|
28 |
-
sh -c 'while [ ! -f
|
29 |
volumes:
|
30 |
- ./data:/app/data
|
31 |
- ./checkpoints:/app/checkpoints
|
@@ -38,13 +38,16 @@ services:
|
|
38 |
networks:
|
39 |
- default
|
40 |
env_file:
|
41 |
-
- .env
|
|
|
|
|
42 |
|
|
|
43 |
# inference:
|
44 |
# build:
|
45 |
# context: .
|
46 |
# command: |
|
47 |
-
# sh -c 'while [ ! -f
|
48 |
# volumes:
|
49 |
# - ./data:/app/data
|
50 |
# - ./checkpoints:/app/checkpoints
|
@@ -58,6 +61,8 @@ services:
|
|
58 |
# - default
|
59 |
# env_file:
|
60 |
# - .env
|
|
|
|
|
61 |
|
62 |
volumes:
|
63 |
data:
|
|
|
15 |
environment:
|
16 |
- PYTHONUNBUFFERED=1
|
17 |
- PYTHONPATH=/app
|
18 |
+
shm_size: '4g'
|
19 |
networks:
|
20 |
- default
|
21 |
env_file:
|
22 |
- .env
|
23 |
+
|
24 |
eval:
|
25 |
build:
|
26 |
context: .
|
27 |
command: |
|
28 |
+
sh -c 'while [ ! -f /app/checkpoints/train_done.flag ]; do sleep 10; done && python -m src.train experiment=catdog_experiment ++task_name=eval ++train=False ++test=True'
|
29 |
volumes:
|
30 |
- ./data:/app/data
|
31 |
- ./checkpoints:/app/checkpoints
|
|
|
38 |
networks:
|
39 |
- default
|
40 |
env_file:
|
41 |
+
- .env
|
42 |
+
depends_on:
|
43 |
+
- train
|
44 |
|
45 |
+
# Uncomment if you want to use inference service in the future
|
46 |
# inference:
|
47 |
# build:
|
48 |
# context: .
|
49 |
# command: |
|
50 |
+
# sh -c 'while [ ! -f /app/checkpoints/train_done.flag ]; do sleep 10; done && python -m src.infer experiment=catdog_experiment'
|
51 |
# volumes:
|
52 |
# - ./data:/app/data
|
53 |
# - ./checkpoints:/app/checkpoints
|
|
|
61 |
# - default
|
62 |
# env_file:
|
63 |
# - .env
|
64 |
+
# depends_on:
|
65 |
+
# - train
|
66 |
|
67 |
volumes:
|
68 |
data:
|
dvc.yaml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
stages:
|
2 |
+
train:
|
3 |
+
cmd: docker-compose run --rm train
|
4 |
+
deps:
|
5 |
+
- docker-compose.yaml
|
6 |
+
- src/train.py
|
7 |
+
- data
|
8 |
+
outs:
|
9 |
+
- checkpoints/best-checkpoint.ckpt
|
10 |
+
- checkpoints/train_done.flag
|
11 |
+
# eval:
|
12 |
+
# cmd: docker-compose run --rm eval
|
13 |
+
# deps:
|
14 |
+
# - docker-compose.yaml
|
15 |
+
# - src/train.py
|
16 |
+
# - checkpoints/best-checkpoint.ckpt
|
17 |
+
# - checkpoints/train_done.flag
|
18 |
+
|
19 |
+
# inference:
|
20 |
+
# cmd: docker-compose run --rm inference
|
21 |
+
# deps:
|
22 |
+
# - docker-compose.yaml
|
23 |
+
# - src/infer.py
|
24 |
+
# - checkpoints/best-checkpoint.ckpt
|
25 |
+
# - checkpoints/train_done.flag
|
26 |
+
# outs:
|
27 |
+
# - artifacts/image_prediction.png
|