-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
301 lines (275 loc) · 16 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
version: '2.3'
services:
### Double DQN trainings
# container for singleplayer training with double DQN
bfw-double-singleplayer:
image: masterthesis-bfw-0920
container_name: bfw-double-singleplayer
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=0
volumes:
- ${ROOT_PATH}/results/double-singleplayer/runs:/app/runs
- ${ROOT_PATH}/results/double-singleplayer/nets:/app/nets
- ${ROOT_PATH}/results/double-singleplayer/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/01_double_dqn/train_singleplayer.py --double --cuda --scenario side2_pass_3units --units 3 --maxFrames 500000"
# container for multiplayer training with double DQN
bfw-double-multiplayer:
image: masterthesis-bfw-0920
container_name: bfw-double-multiplayer
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=0
volumes:
- ${ROOT_PATH}/results/double-multiplayer/runs:/app/runs
- ${ROOT_PATH}/results/double-multiplayer/nets:/app/nets
- ${ROOT_PATH}/results/double-multiplayer/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/01_double_dqn/train_multiplayer.py --double --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000"
# container for selfplayer training with double DQN
bfw-double-selfplay:
image: masterthesis-bfw-0920
container_name: bfw-double-selfplay
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=0
volumes:
- ${ROOT_PATH}/results/double-selfplay/runs:/app/runs
- ${ROOT_PATH}/results/double-selfplay/nets:/app/nets
- ${ROOT_PATH}/results/double-selfplay/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/01_double_dqn/train_selfplayer.py --double --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000"
# container for selfplayer training with double DQN
bfw-double-atk-def:
image: masterthesis-bfw-1009-def
container_name: bfw-double-atk-def
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=1
volumes:
- ${ROOT_PATH}/results/double-atk-def/runs:/app/runs
- ${ROOT_PATH}/results/double-atk-def/nets:/app/nets
- ${ROOT_PATH}/results/double-atk-def/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/01_double_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units_def --units 3 --maxFrames 500000"
# container for multiplayer training in attack and defender role with double DQN (on special asymmetric map)
bfw-double-atk-def-castle:
image: masterthesis-bfw-1009-def
container_name: bfw-double-atk-def-castle
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=1
volumes:
- ${ROOT_PATH}/results/double-atk-def-castle/runs:/app/runs
- ${ROOT_PATH}/results/double-atk-def-castle/nets:/app/nets
- ${ROOT_PATH}/results/double-atk-def-castle/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/01_double_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units_castle --units 3 --maxFrames 500000"
# container for multiplayer training with double DQN with prototypical map rotation over five maps every game
# bfw-double-multiplayer-map-rotation:
# image: masterthesis-bfw-0908
# container_name: bfw-double-multiplayer-map-rotation
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=0
# volumes:
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation/runs:/app/runs
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation/nets:/app/nets
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation/maps:/app/maps
# command: >
# sh -c "export DISPLAY=:99.0 &&
# /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
# python3 /app/0_double_dqn/train_multiplayer.py --double --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000 --variations 1 --rotation 5"
# container for multiplayer training with double DQN with prototypical map rotation over five maps every ten games
# bfw-double-multiplayer-map-rotation-less:
# image: masterthesis-bfw-0908
# container_name: bfw-double-multiplayer-map-rotation-less
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=0
# volumes:
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation-less/runs:/app/runs
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation-less/nets:/app/nets
# - ${ROOT_PATH}/results/double-multiplayer-map-rotation-less/maps:/app/maps
# command: >
# sh -c "export DISPLAY=:99.0 &&
# /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
# python3 /app/01_double_dqn/train_multiplayer.py --double --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000 --variations 10 --rotation 5"
### Rainbow DQN trainings
# container for singleplayer training with rainbow DQN
bfw-rainbow-singleplayer:
image: masterthesis-bfw-0920
container_name: bfw-rainbow-singleplayer
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-singleplayer/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-singleplayer/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-singleplayer/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/train_singleplayer.py --cuda --scenario side2_pass_3units --units 3 --maxFrames 500000"
# container for multiplayer training with rainbow DQN
bfw-rainbow-multiplayer:
image: masterthesis-bfw-0920
container_name: bfw-rainbow-multiplayer
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-multiplayer/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-multiplayer/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-multiplayer/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/2_rainbow_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000"
# container for selfplayer training with rainbow DQN
bfw-rainbow-selfplay:
image: masterthesis-bfw-0920
container_name: bfw-rainbow-selfplay
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-selfplay/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-selfplay/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-selfplay/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/train_selfplayer.py --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000"
# container for selfplayer training with rainbow DQN
bfw-rainbow-atk-def:
image: masterthesis-bfw-1009-def
container_name: bfw-rainbow-atk-def
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=3
volumes:
- ${ROOT_PATH}/results/rainbow-atk-def/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-atk-def/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-atk-def/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units_def --units 3 --maxFrames 500000"
# container for multiplayer training in attack and defender role with rainbow DQN (on special asymmetric map)
bfw-rainbow-atk-def-castle:
image: masterthesis-bfw-1009-def
container_name: bfw-rainbow-atk-def-castle
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=3
volumes:
- ${ROOT_PATH}/results/rainbow-atk-def-castle/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-atk-def-castle/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-atk-def-castle/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units_castle --units 3 --maxFrames 500000"
# container for multiplayer training with rainbow DQN with prototypical map rotation over five maps every game
# bfw-rainbow-multiplayer-map-rotation:
# image: masterthesis-bfw-0908
# container_name: bfw-rainbow-multiplayer-map-rotation
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=2
# volumes:
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation/runs:/app/runs
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation/nets:/app/nets
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation/maps:/app/maps
# command: >
# sh -c "export DISPLAY=:99.0 &&
# /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
# python3 /app/02_rainbow_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000 --variations 1 --rotation 5"
# container for multiplayer training with rainbow DQN with prototypical map rotation over five maps every ten games
# bfw-rainbow-multiplayer-map-rotation-less:
# image: masterthesis-bfw-0908
# container_name: bfw-rainbow-multiplayer-map-rotation-less
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=2
# volumes:
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation-less/runs:/app/runs
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation-less/nets:/app/nets
# - ${ROOT_PATH}/results/rainbow-multiplayer-map-rotation-less/maps:/app/maps
# command: >
# sh -c "export DISPLAY=:99.0 &&
# /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
# python3 /app/02_rainbow_dqn/train_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --maxFrames 500000 --variations 10 --rotation 5"
### Rainbow DQN tests
# container for singleplayer testing with rainbow DQN
bfw-rainbow-singleplayer-test:
image: masterthesis-bfw-1009
container_name: bfw-rainbow-singleplayer-test
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-singleplayer-test/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-singleplayer-test/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-singleplayer-test/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/play_singleplayer.py --cuda --scenario side2_pass_3units --units 3 --model1=./02_rainbow_dqn/runs/Sep27_06-24-13-bfw-rainbow-scenario=side2_pass_3units-units=3-player0.dat --maxFrames 50000"
# container for singleplayer vs singleplayer testing with rainbow DQN
bfw-rainbow-multi-singleplayer-test:
image: masterthesis-bfw-1009
container_name: bfw-rainbow-multi-singleplayer-test
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-test/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-test/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-test/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/play_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --model1=./02_rainbow_dqn/runs/Sep27_06-24-13-bfw-rainbow-scenario=side2_pass_3units-units=3-player0.dat --model2=./02_rainbow_dqn/runs/Sep27_06-24-13-bfw-rainbow-scenario=side2_pass_3units-units=3-player0.dat --maxFrames 50000"
# container for multiplayer vs multiplayer testing with rainbow DQN
bfw-rainbow-multi-multiplayer-test:
image: masterthesis-bfw-1009
container_name: bfw-rainbow-multi-multiplayer-test
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-multi-multiplayer-test/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-multi-multiplayer-test/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-multi-multiplayer-test/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/play_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --model1=./02_rainbow_dqn/runs/Sep21_16-47-06-bfw-rainbow-scenario=multi_side_ai_3units-units=3-player1.dat --model2=./02_rainbow_dqn/runs/Sep21_16-47-06-bfw-rainbow-scenario=multi_side_ai_3units-units=3-player1.dat --maxFrames 50000"
# container for singleplayer vs multiplayer testing with rainbow DQN
bfw-rainbow-singleplayer-multiplayer-test:
image: masterthesis-bfw-1009
container_name: bfw-rainbow-multi-singleplayer-multiplayer-test
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=2
volumes:
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-multiplayer-test/runs:/app/runs
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-multiplayer-test/nets:/app/nets
- ${ROOT_PATH}/results/rainbow-multi-singleplayer-multiplayer-test/maps:/app/maps
command: >
sh -c "export DISPLAY=:99.0 &&
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24 &&
python3 /app/02_rainbow_dqn/play_multiplayer.py --cuda --scenario multi_side_ai_3units --units 3 --model1=./02_rainbow_dqn/runs/Sep27_06-24-13-bfw-rainbow-scenario=side2_pass_3units-units=3-player0.dat --model2=./02_rainbow_dqn/runs/Sep21_16-47-06-bfw-rainbow-scenario=multi_side_ai_3units-units=3-player1.dat --maxFrames 50000"