Select Git revision
-
Aida Torajiro authoredAida Torajiro authored
readme.md 551 B
midi notes trainer & generator in pytorch
How to run
- make
dataset
directory and put training midi files in it - run
train.py
. Every 100 epochs, weight file will be generated. - change
const.py
setting (gen_load
andoptim_load
variable) according to generated weight files - run
gen.py
.out.mid
will be generated.
network
linear -> relu -> linear -> relu -> linear -> relu -> softmax
Each note will be serialized as 2 * 128 tensor
Input: last 16 notes
Output: probability distribution of note melody and note length