AI_Composer icon indicating copy to clipboard operation
AI_Composer copied to clipboard

Config file example

Open kaiquewdev opened this issue 8 years ago • 3 comments

Can you share an configuration file sample?

kaiquewdev avatar Jun 19 '16 22:06 kaiquewdev

An example is in rnn.py

sshh12 avatar Dec 25 '16 17:12 sshh12

rnn.py (https://github.com/llSourcell/AI_Composer/blob/master/rnn.py) has DefaultConfig, it helps to see what the --config-file would like, i tried like this but no luck

Num Layers=2 Hidden Size=200 Melody Coeff=0.5 Dropout Prob=0.5 Input Dropout Prob=0.8 Cell Type='lstm' Time Batch Len=128 Learning Rate=5e-3 Decay=0.9

beeyeas avatar Mar 09 '17 18:03 beeyeas

It looks like in rnn_sample.py line 30 the module is expecting that the new_config_file.config file be a cPickle that it can load. In rnn.py there is a class which has those parameters as members, I suspect that a pickle containing an instance of that class is saved during training. I looked in my model folder and I found a file which has a .config extension: nl_2_hs_200_mc_0p5_dp_0p5_idp_0p8_tb_128.config instead of calling python rnn_sample.py --config_file new_config_file.config I called python rnn_sample.py --config_file ./models/0322_1020/nl_2_hs_200_mc_0p5_dp_0p5_idp_0p8_tb_128.config This seems to have got me past that error, but no I'm crashing on something related to midi.py.

iantheconway avatar Mar 22 '17 18:03 iantheconway