Skip to content

Commit 8691d31

Browse files
committed
added slime volleyball gym example
1 parent 6a94d84 commit 8691d31

10 files changed

+76093
-10
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,26 @@ If you haven't bothered to run the previous training command, you can load the p
116116
python model.py cartpole_swingup zoo/cartpole_swingup.cma.json
117117
```
118118

119+
### Self-Contained Slime Volleyball Gym Environment
120+
121+
<center>
122+
<img src="https://otoro.net/img/slimegym/state.gif" width="100%"/><br/>
123+
</center>
124+
125+
Here is an example for training [slime volleyball gym](https://github.com/hardmaru/slimevolleygym) environment:
126+
127+
Training command:
128+
129+
```
130+
python train.py slimevolley -n 8 -e 8 -t 4 --sigma_init 0.5
131+
```
132+
133+
Pre-trained model:
134+
135+
```
136+
python model.py slimevolley zoo/slimevolley.cma.64.96.best.json
137+
```
138+
119139
### PyBullet Envs
120140

121141
<center>

config.py

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
games = {}
66

7+
slimevolley = Game(env_name='SlimeVolley',
8+
input_size=12,
9+
output_size=3,
10+
time_factor=0,
11+
layers=[20, 20],
12+
activation='tanh',
13+
noise_bias=0.0,
14+
output_noise=[False, False, False],
15+
rnn_mode=False,
16+
)
17+
games['slimevolley'] = slimevolley
18+
719
cartpole_swingup = Game(env_name='CartPoleSwingUp',
820
input_size=5,
921
output_size=1,

0 commit comments

Comments
 (0)