Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError #3

Open
bluehole1604 opened this issue Mar 17, 2017 · 3 comments
Open

ZeroDivisionError #3

bluehole1604 opened this issue Mar 17, 2017 · 3 comments

Comments

@bluehole1604
Copy link

When I launch the program, I've got this error :

" File "D:*\deepmusic\composer.py", line 255, in _main_train
next_batch_test = batches_test[self.glob_step % len(batches_test)] # Generate test batches in a cycling way (test set smaller than train set)
ZeroDivisionError: integer division or modulo by zero "

I've tried with others midi and with the included one but i still get the error even if i got 4 train and 1 test.

I don't see where it come from...

Thanks in advance.

@Eumi
Copy link

Eumi commented Apr 10, 2017

i fixed it ..with help ...somewehere above that error it probably writes down:
Restoring dataset from C:\data/samples\ragtimemusic-relative.pkl...
just delete ragtimemusic-relative.pkl in the path it says and run again =D

anhd change acced permission for the folder ...on win 10 u dont have enough.

@Eumi
Copy link

Eumi commented Apr 14, 2017

haha its me again...for some reason this worked and for other reasons it stopped working...idk whats going on ...actually u have to change the batchsize .... try running main.py --batch_size 1 ... and see if it works ..and when it those ..choose a batch size that is smaller than the number of midis u have in the program ...like if u have 1000 choose 50 ..or so not 1...from what i understood one is not good..i think. and the normal patchsize of the program is 64.. idk why it worked before ..but its working for me again ...and if it finds no model ...make an empty file model.ckpt ..in ur save/model folder.

@erikamenezes
Copy link

Creating the model.ckpt file leads to some music being generated. But what does this mean? Is it learning from the files that have been used for training?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants