Open mpwsh opened 6 years ago
File "/media/sata/MusicGenerator/deepmusic/composer.py", line 255, in _main_train
You should open this script composer.py and find this line :
next_batch_test = batches_test[self.glob_step % len(batches_test)]
the parameter len(batches_test) here is zero because the batches_test is empty.
the batches_test is got by this code,in the same script:
batches_train, batches_test = self.music_data.get_batches()
Now is the solution:
Open the batchbuilder.py script and find :
def get_list(self, dataset, name):
""" See parent class for more details
Args:
dataset (list[Song]): the training/testing set
name (str): indicate the dataset type
Return:
list[Batch]: the batches to process
"""
focus on the code
for i in range((nb_samples//self.args.batch_size)):
yield extracts[iself.args.batch_size:(i+1)self.args.batch_size]
the main reason is that nb_samples is too small to divided by self.args.batch_size(equal 0)
so this code don't work,you should input some long songs
What I input are the Bach Piano Songs ,which I download from Internet
I know you pretty much abandoned this project, but i'm trying to make it work with tensorflow 0.12.1 and i'm getting this when the training "starts" (actually it freezes at 0% and then shows this error)
Any ideas? Does this relates to the tags warning?