You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for parsing replays to gbx.py; sort tracks based on replays; fix important bug with data augumentation; new position model; apply weights to block model's output; add gui.py
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ This will generate a track using the provided block and position models that wil
18
18
* Keras
19
19
* python-lzo (through pip)
20
20
* numpy
21
-
* Not required: pygame or Gtk+3 and GLib for track visualization
21
+
* Not required: Gtk+3 and GLib for track visualization
22
22
23
23
## Dataset
24
24
This repo doesn't contain the dataset itself used to train the models in the `models/` directory as it is unusual to provide entire datasets with code in one repo. There is however a preprocessed version of the dataset used in the `data/train_data.pkl` file that you can use for futher training.
25
25
26
-
The file contains roughly 3000 tech tracks downloaded directly from [TMX](https://tmnforever.tm-exchange.com/) and preprocessed such that they contain only the simplified version of tracks of each map. The maps themselves were downloaded using these filters: type: tech, order: awards (most), length: ~= 1m.
26
+
The file contains roughly 3000 tech tracks downloaded directly from [TMX](https://tmnforever.tm-exchange.com/) and preprocessed such that they contain only the simplified version of tracks of each map. The maps themselves were downloaded using these filters: style: tech, order: awards (most), length: ~= 1m.
27
27
28
28
## Neural Network Architecture
29
29
We can represent a track as a sequence of block placements. Each block consists of 3 main features:
@@ -44,8 +44,6 @@ Since we want to predict the next block in the sequence we ask the block model t
44
44
The position model's output is two features: the vector to add to the position of last block to get a new position of the new block and the rotation of the new block.
45
45
Their loss function is mean squared error and softmax respectively.
46
46
47
-

48
-
49
47
## Training
50
48
It is recommended to have a dedicated GPU for training the nets, otherwise training process will be very slow.
Invoking either `train_blocks.py` or `train_pos.py` with the `-l` option will automatically
63
61
use model checkpointing to save new models with the model filename that was loaded.
64
62
65
-
`livebuild.py` allows to dynamically generate tracks, it has a Gtk+3 UI to visualize how the track currently looks like. To fully evaluate model's performance, it's recommended to use `build.py` and see the tracks generated in the game itself.
63
+
`livebuild.py` allows to dynamically generate tracks, it has a Gtk+3 UI to visualize how the track currently looks like. To fully evaluate model's performance, it's recommended to use `build.py` and see the tracks generated in the game itself.
0 commit comments