Closed MaksSieve closed 7 years ago
To load them, you can do something like this:
>>> import model
>>> import main
>>> import multi_training
>>> import cPickle as pickle
>>> pcs = multi_training.loadPieces("music")
>>> m = model.Model([300,300],[100,50], dropout=0.5)
>>> m.learned_config = pickle.load(open( "output/final_learned_config.p", "rb" ) )
>>> main.gen_adaptive(m,pcs,10,name="composition")
where you replace "output/final_learned_config.p" with the location of the weights.
How may I load already trained weights to the model?