SparkleDark commited on
Commit
52a4e7c
1 Parent(s): 16a1b4e

First Push

Browse files
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ml-agents
3
+ tags:
4
+ - SoccerTwos
5
+ - deep-reinforcement-learning
6
+ - reinforcement-learning
7
+ - ML-Agents-SoccerTwos
8
+ ---
9
+
10
+ # **poca** Agent playing **SoccerTwos**
11
+ This is a trained model of a **poca** agent playing **SoccerTwos**
12
+ using the [Unity ML-Agents Library](https://github.com/Unity-Technologies/ml-agents).
13
+
14
+ ## Usage (with ML-Agents)
15
+ The Documentation: https://unity-technologies.github.io/ml-agents/ML-Agents-Toolkit-Documentation/
16
+
17
+ We wrote a complete tutorial to learn to train your first agent using ML-Agents and publish it to the Hub:
18
+ - A *short tutorial* where you teach Huggy the Dog 🐶 to fetch the stick and then play with him directly in your
19
+ browser: https://huggingface.co/learn/deep-rl-course/unitbonus1/introduction
20
+ - A *longer tutorial* to understand how works ML-Agents:
21
+ https://huggingface.co/learn/deep-rl-course/unit5/introduction
22
+
23
+ ### Resume the training
24
+ ```bash
25
+ mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume
26
+ ```
27
+
28
+ ### Watch your Agent play
29
+ You can watch your agent **playing directly in your browser**
30
+
31
+ 1. If the environment is part of ML-Agents official environments, go to https://huggingface.co/unity
32
+ 2. Step 1: Find your model_id: SparkleDark/SoccerToooos
33
+ 3. Step 2: Select your *.nn /*.onnx file
34
+ 4. Click on Watch the agent play 👀
35
+
SoccerTwos/SoccerTwos-101432.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb5221b88804bfa4ffd1cf457585c12daf5fda0eb7b2ad19be8f22b6082ab6be
3
+ size 28430234
SoccerTwos/checkpoint.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3364bf80244a81b695ed3c1e4328d958a793eb44993ec01b01ddec95f308052
3
+ size 28429366
SoccerTwos/events.out.tfevents.1713894025.codespaces-1efef4.35309.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc1b3ae7e74b39c7a550e96a95a1b47897f0eb0544e30a83ffe11410f0cc6980
3
+ size 79450
config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"behaviors": {"SoccerTwos": {"trainer_type": "poca", "hyperparameters": {"batch_size": 2048, "buffer_size": 20480, "learning_rate": 0.0003, "beta": 0.005, "epsilon": 0.2, "lambd": 0.95, "num_epoch": 3, "learning_rate_schedule": "constant"}, "network_settings": {"normalize": false, "hidden_units": 512, "num_layers": 2, "vis_encode_type": "simple"}, "reward_signals": {"extrinsic": {"gamma": 0.99, "strength": 1.0}}, "keep_checkpoints": 5, "max_steps": 50000000, "time_horizon": 1000, "summary_freq": 10000, "self_play": {"save_steps": 50000, "team_change": 200000, "swap_steps": 2000, "window": 10, "play_against_latest_model_ratio": 0.7, "initial_elo": 1200.0}}}}
configuration.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ behaviors:
2
+ SoccerTwos:
3
+ trainer_type: poca
4
+ hyperparameters:
5
+ batch_size: 2048
6
+ buffer_size: 20480
7
+ learning_rate: 0.0003
8
+ beta: 0.005
9
+ epsilon: 0.2
10
+ lambd: 0.95
11
+ num_epoch: 3
12
+ learning_rate_schedule: constant
13
+ network_settings:
14
+ normalize: false
15
+ hidden_units: 512
16
+ num_layers: 2
17
+ vis_encode_type: simple
18
+ reward_signals:
19
+ extrinsic:
20
+ gamma: 0.99
21
+ strength: 1.0
22
+ keep_checkpoints: 5
23
+ max_steps: 50000000
24
+ time_horizon: 1000
25
+ summary_freq: 10000
26
+ self_play:
27
+ save_steps: 50000
28
+ team_change: 200000
29
+ swap_steps: 2000
30
+ window: 10
31
+ play_against_latest_model_ratio: 0.7
32
+ initial_elo: 1200.0
run_logs/Player-0.log ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mono path[0] = '/workspaces/SoccerTwos/ml-agents/training-envs-executables/linux/Soccertwos/SoccerTwos_Data/Managed'
2
+ Mono config path = '/workspaces/SoccerTwos/ml-agents/training-envs-executables/linux/Soccertwos/SoccerTwos_Data/MonoBleedingEdge/etc'
3
+ Preloaded 'lib_burst_generated.so'
4
+ Preloaded 'libgrpc_csharp_ext.x64.so'
5
+ PlayerPrefs - Creating folder: /home/codespace/.config/unity3d/Unity Technologies
6
+ PlayerPrefs - Creating folder: /home/codespace/.config/unity3d/Unity Technologies/SoccerTwos
7
+ Unable to load player prefs
8
+ Initialize engine version: 2021.3.14f1 (eee1884e7226)
9
+ [Subsystems] Discovering subsystems at path /workspaces/SoccerTwos/ml-agents/training-envs-executables/linux/Soccertwos/SoccerTwos_Data/UnitySubsystems
10
+ Forcing GfxDevice: Null
11
+ GfxDevice: creating device client; threaded=0; jobified=0
12
+ NullGfxDevice:
13
+ Version: NULL 1.0 [1.0]
14
+ Renderer: Null Device
15
+ Vendor: Unity Technologies
16
+ ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
17
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
18
+ ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
19
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
20
+ ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
21
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
22
+ ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
23
+ ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
24
+ FMOD failed to initialize the output device.: "Error initializing output device. " (60)
25
+ Forced to initialize FMOD to to the device driver's system output rate 48000, this may impact performance and/or give inconsistent experiences compared to selected sample rate 48000
26
+ ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
27
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
28
+ ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
29
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
30
+ ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
31
+ ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
32
+ ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
33
+ ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
34
+ FMOD failed to initialize the output device.: "Error initializing output device. " (60)
35
+ FMOD initialized on nosound output
36
+ Begin MonoManager ReloadAssembly
37
+ - Completed reload, in 0.085 seconds
38
+ ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
39
+ ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
40
+ ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
41
+ WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
42
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
43
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
44
+ ERROR: Shader Standard (Specular setup) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
45
+ WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
46
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
47
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
48
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
49
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
50
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
51
+ ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
52
+ WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
53
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
54
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
55
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
56
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
57
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
58
+ ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
59
+ WARNING: Shader Unsupported: 'Standard' - All subshaders removed
60
+ WARNING: Shader Did you use #pragma only_renderers and omit this platform?
61
+ WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
62
+ UnloadTime: 0.612802 ms
63
+ Registered Communicator in Agent.
64
+ ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
65
+ requesting resize 84 x 84
66
+ TOO LONG
67
+ TOO LONG
68
+ TOO LONG
69
+ TOO LONG
70
+ TOO LONG
71
+ TOO LONG
72
+ TOO LONG
73
+ TOO LONG
74
+ TOO LONG
75
+ TOO LONG
76
+ TOO LONG
77
+ TOO LONG
78
+ TOO LONG
79
+ TOO LONG
80
+ TOO LONG
81
+ TOO LONG
82
+ TOO LONG
83
+ TOO LONG
84
+ TOO LONG
85
+ TOO LONG
86
+ TOO LONG
87
+ TOO LONG
88
+ TOO LONG
89
+ TOO LONG
90
+ TOO LONG
91
+ TOO LONG
92
+ TOO LONG
93
+ TOO LONG
94
+ TOO LONG
95
+ TOO LONG
96
+ TOO LONG
97
+ TOO LONG
98
+ TOO LONG
99
+ TOO LONG
100
+ TOO LONG
101
+ TOO LONG
102
+ TOO LONG
103
+ TOO LONG
104
+ TOO LONG
105
+ TOO LONG
106
+ Setting up 1 worker threads for Enlighten.
107
+ Memory Statistics:
108
+ [ALLOC_TEMP_TLS] TLS Allocator
109
+ StackAllocators :
110
+ [ALLOC_TEMP_MAIN]
111
+ Peak usage frame count: [8.0 KB-16.0 KB]: 2052 frames, [2.0 MB-4.0 MB]: 1 frames
112
+ Initial Block Size 4.0 MB
113
+ Current Block Size 4.0 MB
114
+ Peak Allocated Bytes 2.1 MB
115
+ Overflow Count 0
116
+ [ALLOC_TEMP_Loading.AsyncRead]
117
+ Initial Block Size 64.0 KB
118
+ Current Block Size 64.0 KB
119
+ Peak Allocated Bytes 128 B
120
+ Overflow Count 0
121
+ [ALLOC_TEMP_Loading.PreloadManager]
122
+ Initial Block Size 256.0 KB
123
+ Current Block Size 300.0 KB
124
+ Peak Allocated Bytes 249.6 KB
125
+ Overflow Count 4
126
+ [ALLOC_TEMP_Background Job.Worker 8]
127
+ Initial Block Size 32.0 KB
128
+ Current Block Size 32.0 KB
129
+ Peak Allocated Bytes 0 B
130
+ Overflow Count 0
131
+ [ALLOC_TEMP_Background Job.Worker 9]
132
+ Initial Block Size 32.0 KB
133
+ Current Block Size 32.0 KB
134
+ Peak Allocated Bytes 0 B
135
+ Overflow Count 0
136
+ [ALLOC_TEMP_Job.Worker 0]
137
+ Initial Block Size 256.0 KB
138
+ Current Block Size 256.0 KB
139
+ Peak Allocated Bytes 0.7 KB
140
+ Overflow Count 0
141
+ [ALLOC_TEMP_Background Job.Worker 10]
142
+ Initial Block Size 32.0 KB
143
+ Current Block Size 32.0 KB
144
+ Peak Allocated Bytes 0 B
145
+ Overflow Count 0
146
+ [ALLOC_TEMP_Background Job.Worker 14]
147
+ Initial Block Size 32.0 KB
148
+ Current Block Size 32.0 KB
149
+ Peak Allocated Bytes 0 B
150
+ Overflow Count 0
151
+ [ALLOC_TEMP_Background Job.Worker 6]
152
+ Initial Block Size 32.0 KB
153
+ Current Block Size 32.0 KB
154
+ Peak Allocated Bytes 0 B
155
+ Overflow Count 0
156
+ [ALLOC_TEMP_Background Job.Worker 12]
157
+ Initial Block Size 32.0 KB
158
+ Current Block Size 32.0 KB
159
+ Peak Allocated Bytes 0 B
160
+ Overflow Count 0
161
+ [ALLOC_TEMP_EnlightenWorker]
162
+ Initial Block Size 64.0 KB
163
+ Current Block Size 64.0 KB
164
+ Peak Allocated Bytes 0 B
165
+ Overflow Count 0
166
+ [ALLOC_TEMP_Background Job.Worker 15]
167
+ Initial Block Size 32.0 KB
168
+ Current Block Size 32.0 KB
169
+ Peak Allocated Bytes 0 B
170
+ Overflow Count 0
171
+ [ALLOC_TEMP_Background Job.Worker 1]
172
+ Initial Block Size 32.0 KB
173
+ Current Block Size 32.0 KB
174
+ Peak Allocated Bytes 0 B
175
+ Overflow Count 0
176
+ [ALLOC_TEMP_Background Job.Worker 2]
177
+ Initial Block Size 32.0 KB
178
+ Current Block Size 32.0 KB
179
+ Peak Allocated Bytes 0 B
180
+ Overflow Count 0
181
+ [ALLOC_TEMP_Background Job.Worker 7]
182
+ Initial Block Size 32.0 KB
183
+ Current Block Size 32.0 KB
184
+ Peak Allocated Bytes 0 B
185
+ Overflow Count 0
186
+ [ALLOC_TEMP_AssetGarbageCollectorHelper]
187
+ Initial Block Size 64.0 KB
188
+ Current Block Size 64.0 KB
189
+ Peak Allocated Bytes 0 B
190
+ Overflow Count 0
191
+ [ALLOC_TEMP_Background Job.Worker 5]
192
+ Initial Block Size 32.0 KB
193
+ Current Block Size 32.0 KB
194
+ Peak Allocated Bytes 0 B
195
+ Overflow Count 0
196
+ [ALLOC_TEMP_Background Job.Worker 13]
197
+ Initial Block Size 32.0 KB
198
+ Current Block Size 32.0 KB
199
+ Peak Allocated Bytes 0 B
200
+ Overflow Count 0
201
+ [ALLOC_TEMP_Background Job.Worker 11]
202
+ Initial Block Size 32.0 KB
203
+ Current Block Size 32.0 KB
204
+ Peak Allocated Bytes 0 B
205
+ Overflow Count 0
206
+ [ALLOC_TEMP_Background Job.Worker 3]
207
+ Initial Block Size 32.0 KB
208
+ Current Block Size 32.0 KB
209
+ Peak Allocated Bytes 0 B
210
+ Overflow Count 0
211
+ [ALLOC_TEMP_Background Job.Worker 0]
212
+ Initial Block Size 32.0 KB
213
+ Current Block Size 32.0 KB
214
+ Peak Allocated Bytes 0 B
215
+ Overflow Count 0
216
+ [ALLOC_TEMP_Background Job.Worker 4]
217
+ Initial Block Size 32.0 KB
218
+ Current Block Size 32.0 KB
219
+ Peak Allocated Bytes 0 B
220
+ Overflow Count 0
221
+ [ALLOC_TEMP_BatchDeleteObjects]
222
+ Initial Block Size 64.0 KB
223
+ Current Block Size 64.0 KB
224
+ Peak Allocated Bytes 0 B
225
+ Overflow Count 0
226
+ [ALLOC_DEFAULT] Dual Thread Allocator
227
+ Peak main deferred allocation count 2
228
+ [ALLOC_BUCKET]
229
+ Large Block size 4.0 MB
230
+ Used Block count 1
231
+ Peak Allocated bytes 1.0 MB
232
+ [ALLOC_DEFAULT_MAIN]
233
+ Peak usage frame count: [4.0 MB-8.0 MB]: 2053 frames
234
+ Requested Block Size 16.0 MB
235
+ Peak Block count 1
236
+ Peak Allocated memory 4.6 MB
237
+ Peak Large allocation bytes 0 B
238
+ [ALLOC_DEFAULT_THREAD]
239
+ Peak usage frame count: [16.0 MB-32.0 MB]: 2053 frames
240
+ Requested Block Size 16.0 MB
241
+ Peak Block count 1
242
+ Peak Allocated memory 17.6 MB
243
+ Peak Large allocation bytes 16.0 MB
244
+ [ALLOC_TEMP_JOB_1_FRAME]
245
+ Initial Block Size 2.0 MB
246
+ Used Block Count 1
247
+ Overflow Count (too large) 0
248
+ Overflow Count (full) 0
249
+ [ALLOC_TEMP_JOB_2_FRAMES]
250
+ Initial Block Size 2.0 MB
251
+ Used Block Count 1
252
+ Overflow Count (too large) 0
253
+ Overflow Count (full) 0
254
+ [ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
255
+ Initial Block Size 2.0 MB
256
+ Used Block Count 2
257
+ Overflow Count (too large) 0
258
+ Overflow Count (full) 0
259
+ [ALLOC_TEMP_JOB_ASYNC (Background)]
260
+ Initial Block Size 1.0 MB
261
+ Used Block Count 3
262
+ Overflow Count (too large) 0
263
+ Overflow Count (full) 0
264
+ [ALLOC_GFX] Dual Thread Allocator
265
+ Peak main deferred allocation count 0
266
+ [ALLOC_BUCKET]
267
+ Large Block size 4.0 MB
268
+ Used Block count 1
269
+ Peak Allocated bytes 1.0 MB
270
+ [ALLOC_GFX_MAIN]
271
+ Peak usage frame count: [32.0 KB-64.0 KB]: 2052 frames, [64.0 KB-128.0 KB]: 1 frames
272
+ Requested Block Size 16.0 MB
273
+ Peak Block count 1
274
+ Peak Allocated memory 65.6 KB
275
+ Peak Large allocation bytes 0 B
276
+ [ALLOC_GFX_THREAD]
277
+ Peak usage frame count: [128.0 KB-256.0 KB]: 2053 frames
278
+ Requested Block Size 16.0 MB
279
+ Peak Block count 1
280
+ Peak Allocated memory 173.5 KB
281
+ Peak Large allocation bytes 0 B
282
+ [ALLOC_CACHEOBJECTS] Dual Thread Allocator
283
+ Peak main deferred allocation count 0
284
+ [ALLOC_BUCKET]
285
+ Large Block size 4.0 MB
286
+ Used Block count 1
287
+ Peak Allocated bytes 1.0 MB
288
+ [ALLOC_CACHEOBJECTS_MAIN]
289
+ Peak usage frame count: [0.5 MB-1.0 MB]: 2053 frames
290
+ Requested Block Size 4.0 MB
291
+ Peak Block count 1
292
+ Peak Allocated memory 0.6 MB
293
+ Peak Large allocation bytes 0 B
294
+ [ALLOC_CACHEOBJECTS_THREAD]
295
+ Peak usage frame count: [0.5 MB-1.0 MB]: 2052 frames, [4.0 MB-8.0 MB]: 1 frames
296
+ Requested Block Size 4.0 MB
297
+ Peak Block count 2
298
+ Peak Allocated memory 4.0 MB
299
+ Peak Large allocation bytes 0 B
300
+ [ALLOC_TYPETREE] Dual Thread Allocator
301
+ Peak main deferred allocation count 0
302
+ [ALLOC_BUCKET]
303
+ Large Block size 4.0 MB
304
+ Used Block count 1
305
+ Peak Allocated bytes 1.0 MB
306
+ [ALLOC_TYPETREE_MAIN]
307
+ Peak usage frame count: [0-1.0 KB]: 2053 frames
308
+ Requested Block Size 2.0 MB
309
+ Peak Block count 1
310
+ Peak Allocated memory 1.0 KB
311
+ Peak Large allocation bytes 0 B
312
+ [ALLOC_TYPETREE_THREAD]
313
+ Peak usage frame count: [1.0 KB-2.0 KB]: 2052 frames, [2.0 KB-4.0 KB]: 1 frames
314
+ Requested Block Size 2.0 MB
315
+ Peak Block count 1
316
+ Peak Allocated memory 2.2 KB
317
+ Peak Large allocation bytes 0 B