First Push`
Browse files- README.md +35 -0
- SoccerTwos/events.out.tfevents.1696426934.DESKTOP-U1QTD98.8108.0 +3 -0
- config.json +1 -0
- configuration.yaml +82 -0
- run_logs/Player-0.log +64 -0
- run_logs/timers.json +47 -0
- run_logs/training_status.json +7 -0
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: Quacktab/poca-SoccerTwos
|
33 |
+
3. Step 2: Select your *.nn /*.onnx file
|
34 |
+
4. Click on Watch the agent play 👀
|
35 |
+
|
SoccerTwos/events.out.tfevents.1696426934.DESKTOP-U1QTD98.8108.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:306f83b0539be8c1644f23746b258c99657efa2d0f42c3169531195ccd494f4a
|
3 |
+
size 33131
|
config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"default_settings": null, "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", "beta_schedule": "constant", "epsilon_schedule": "constant"}, "checkpoint_interval": 500000, "network_settings": {"normalize": false, "hidden_units": 512, "num_layers": 2, "vis_encode_type": "simple", "memory": null, "goal_conditioning_type": "hyper", "deterministic": false}, "reward_signals": {"extrinsic": {"gamma": 0.99, "strength": 1.0, "network_settings": {"normalize": false, "hidden_units": 128, "num_layers": 2, "vis_encode_type": "simple", "memory": null, "goal_conditioning_type": "hyper", "deterministic": false}}}, "init_path": null, "keep_checkpoints": 5, "even_checkpoints": false, "max_steps": 50000000, "time_horizon": 1000, "summary_freq": 10000, "threaded": false, "self_play": {"save_steps": 50000, "team_change": 200000, "swap_steps": 2000, "window": 10, "play_against_latest_model_ratio": 0.5, "initial_elo": 1200.0}, "behavioral_cloning": null}}, "env_settings": {"env_path": "./training-envs-executables/SoccerTwos.exe", "env_args": null, "base_port": 5005, "num_envs": 1, "num_areas": 1, "seed": -1, "max_lifetime_restarts": 10, "restarts_rate_limit_n": 1, "restarts_rate_limit_period_s": 60}, "engine_settings": {"width": 84, "height": 84, "quality_level": 5, "time_scale": 20, "target_frame_rate": -1, "capture_frame_rate": 60, "no_graphics": true}, "environment_parameters": null, "checkpoint_settings": {"run_id": "SoccerTwos", "initialize_from": null, "load_model": false, "resume": false, "force": false, "train_model": false, "inference": false, "results_dir": "results"}, "torch_settings": {"device": null}, "debug": false}
|
configuration.yaml
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
default_settings: null
|
2 |
+
behaviors:
|
3 |
+
SoccerTwos:
|
4 |
+
trainer_type: poca
|
5 |
+
hyperparameters:
|
6 |
+
batch_size: 2048
|
7 |
+
buffer_size: 20480
|
8 |
+
learning_rate: 0.0003
|
9 |
+
beta: 0.005
|
10 |
+
epsilon: 0.2
|
11 |
+
lambd: 0.95
|
12 |
+
num_epoch: 3
|
13 |
+
learning_rate_schedule: constant
|
14 |
+
beta_schedule: constant
|
15 |
+
epsilon_schedule: constant
|
16 |
+
checkpoint_interval: 500000
|
17 |
+
network_settings:
|
18 |
+
normalize: false
|
19 |
+
hidden_units: 512
|
20 |
+
num_layers: 2
|
21 |
+
vis_encode_type: simple
|
22 |
+
memory: null
|
23 |
+
goal_conditioning_type: hyper
|
24 |
+
deterministic: false
|
25 |
+
reward_signals:
|
26 |
+
extrinsic:
|
27 |
+
gamma: 0.99
|
28 |
+
strength: 1.0
|
29 |
+
network_settings:
|
30 |
+
normalize: false
|
31 |
+
hidden_units: 128
|
32 |
+
num_layers: 2
|
33 |
+
vis_encode_type: simple
|
34 |
+
memory: null
|
35 |
+
goal_conditioning_type: hyper
|
36 |
+
deterministic: false
|
37 |
+
init_path: null
|
38 |
+
keep_checkpoints: 5
|
39 |
+
even_checkpoints: false
|
40 |
+
max_steps: 50000000
|
41 |
+
time_horizon: 1000
|
42 |
+
summary_freq: 10000
|
43 |
+
threaded: false
|
44 |
+
self_play:
|
45 |
+
save_steps: 50000
|
46 |
+
team_change: 200000
|
47 |
+
swap_steps: 2000
|
48 |
+
window: 10
|
49 |
+
play_against_latest_model_ratio: 0.5
|
50 |
+
initial_elo: 1200.0
|
51 |
+
behavioral_cloning: null
|
52 |
+
env_settings:
|
53 |
+
env_path: ./training-envs-executables/SoccerTwos.exe
|
54 |
+
env_args: null
|
55 |
+
base_port: 5005
|
56 |
+
num_envs: 1
|
57 |
+
num_areas: 1
|
58 |
+
seed: -1
|
59 |
+
max_lifetime_restarts: 10
|
60 |
+
restarts_rate_limit_n: 1
|
61 |
+
restarts_rate_limit_period_s: 60
|
62 |
+
engine_settings:
|
63 |
+
width: 84
|
64 |
+
height: 84
|
65 |
+
quality_level: 5
|
66 |
+
time_scale: 20
|
67 |
+
target_frame_rate: -1
|
68 |
+
capture_frame_rate: 60
|
69 |
+
no_graphics: true
|
70 |
+
environment_parameters: null
|
71 |
+
checkpoint_settings:
|
72 |
+
run_id: SoccerTwos
|
73 |
+
initialize_from: null
|
74 |
+
load_model: false
|
75 |
+
resume: false
|
76 |
+
force: false
|
77 |
+
train_model: false
|
78 |
+
inference: false
|
79 |
+
results_dir: results
|
80 |
+
torch_settings:
|
81 |
+
device: null
|
82 |
+
debug: false
|
run_logs/Player-0.log
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Mono path[0] = 'e:/Dream/unit5/ml-agents/training-envs-executables/SoccerTwos/SoccerTwos_Data/Managed'
|
2 |
+
Mono config path = 'e:/Dream/unit5/ml-agents/training-envs-executables/SoccerTwos/MonoBleedingEdge/etc'
|
3 |
+
Initialize engine version: 2021.3.14f1 (eee1884e7226)
|
4 |
+
[Subsystems] Discovering subsystems at path e:/Dream/unit5/ml-agents/training-envs-executables/SoccerTwos/SoccerTwos_Data/UnitySubsystems
|
5 |
+
Forcing GfxDevice: Null
|
6 |
+
GfxDevice: creating device client; threaded=0; jobified=0
|
7 |
+
NullGfxDevice:
|
8 |
+
Version: NULL 1.0 [1.0]
|
9 |
+
Renderer: Null Device
|
10 |
+
Vendor: Unity Technologies
|
11 |
+
Begin MonoManager ReloadAssembly
|
12 |
+
- Completed reload, in 0.099 seconds
|
13 |
+
ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
14 |
+
Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported for hardware-accelerated video decoding.
|
15 |
+
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
16 |
+
ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
17 |
+
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
|
18 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
19 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
20 |
+
ERROR: Shader Standard (Specular setup) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
21 |
+
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
|
22 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
23 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
24 |
+
WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
|
25 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
26 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
27 |
+
ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
28 |
+
WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
|
29 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
30 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
31 |
+
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
|
32 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
33 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
34 |
+
ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
35 |
+
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
|
36 |
+
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
|
37 |
+
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
|
38 |
+
UnloadTime: 1.744100 ms
|
39 |
+
Registered Communicator in Agent.
|
40 |
+
ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
|
41 |
+
TOO LONG
|
42 |
+
TOO LONG
|
43 |
+
TOO LONG
|
44 |
+
TOO LONG
|
45 |
+
TOO LONG
|
46 |
+
TOO LONG
|
47 |
+
TOO LONG
|
48 |
+
TOO LONG
|
49 |
+
TOO LONG
|
50 |
+
TOO LONG
|
51 |
+
TOO LONG
|
52 |
+
TOO LONG
|
53 |
+
TOO LONG
|
54 |
+
TOO LONG
|
55 |
+
TOO LONG
|
56 |
+
TOO LONG
|
57 |
+
TOO LONG
|
58 |
+
TOO LONG
|
59 |
+
TOO LONG
|
60 |
+
TOO LONG
|
61 |
+
TOO LONG
|
62 |
+
TOO LONG
|
63 |
+
TOO LONG
|
64 |
+
TOO LONG
|
run_logs/timers.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "root",
|
3 |
+
"metadata": {
|
4 |
+
"timer_format_version": "0.1.0",
|
5 |
+
"start_time_seconds": "1696426759",
|
6 |
+
"python_version": "3.9.15 (main, Nov 24 2022, 14:39:17) [MSC v.1916 64 bit (AMD64)]",
|
7 |
+
"command_line_arguments": "\\\\?\\C:\\ProgramData\\Anaconda3\\envs\\dream_dl\\Scripts\\mlagents-learn ./config/poca/SoccerTwos.yaml --env=./training-envs-executables/SoccerTwos.exe --run-id=SoccerTwos --no-graphics",
|
8 |
+
"mlagents_version": "0.31.0.dev0",
|
9 |
+
"mlagents_envs_version": "0.31.0.dev0",
|
10 |
+
"communication_protocol_version": "1.5.0",
|
11 |
+
"pytorch_version": "2.0.1+cu118",
|
12 |
+
"numpy_version": "1.21.2",
|
13 |
+
"end_time_seconds": "1696426762"
|
14 |
+
},
|
15 |
+
"total": 2.8861812,
|
16 |
+
"count": 1,
|
17 |
+
"self": 0.01635259999999983,
|
18 |
+
"children": {
|
19 |
+
"run_training.setup": {
|
20 |
+
"total": 0.1256138,
|
21 |
+
"count": 1,
|
22 |
+
"self": 0.1256138
|
23 |
+
},
|
24 |
+
"TrainerController.start_learning": {
|
25 |
+
"total": 2.7442148,
|
26 |
+
"count": 1,
|
27 |
+
"self": 0.0005695000000001116,
|
28 |
+
"children": {
|
29 |
+
"TrainerController._reset_env": {
|
30 |
+
"total": 2.7436233999999997,
|
31 |
+
"count": 1,
|
32 |
+
"self": 2.7436233999999997
|
33 |
+
},
|
34 |
+
"trainer_threads": {
|
35 |
+
"total": 3.000000000419334e-06,
|
36 |
+
"count": 1,
|
37 |
+
"self": 3.000000000419334e-06
|
38 |
+
},
|
39 |
+
"TrainerController._save_models": {
|
40 |
+
"total": 1.8899999999710815e-05,
|
41 |
+
"count": 1,
|
42 |
+
"self": 1.8899999999710815e-05
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
run_logs/training_status.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"stats_format_version": "0.3.0",
|
4 |
+
"mlagents_version": "0.31.0.dev0",
|
5 |
+
"torch_version": "2.0.1+cu118"
|
6 |
+
}
|
7 |
+
}
|