GRUV icon indicating copy to clipboard operation
GRUV copied to clipboard

generate.py fails: "Model filename ./YourMusicLibraryNPWeights25 could not be found!"

Open drscotthawley opened this issue 8 years ago • 2 comments

To fix this: The code generate.py, as it stands in the repo, includes the line cur_iter = 25 Just changing the 25 to a 50 fixed the issue.

Not sure if this is worth a pull/fork; still adding it here for future users.

PS.- Since you're reading this, as it's been noted in a separate Issue, one also needs to remove the underscore in "model._predict" (i.e., to make it "model.predict") on line 13 of gen_utils/sequence_generator.py. After that the generator will run to full execution.

drscotthawley avatar Jun 01 '16 13:06 drscotthawley

Agree with PS: ("model._predict")

Traceback (most recent call last): File "generate.py", line 59, in sequence_length=max_seq_len, data_variance=X_var, data_mean=X_mean) File "GRUV/gen_utils/sequence_generator.py", line 13, in generate_from_seed seedSeqNew = model._predict(seedSeq) #Step 1. Generate X_n + 1 AttributeError: 'Sequential' object has no attribute '_predict'

karolmajek avatar Sep 01 '16 11:09 karolmajek

@drscotthawley Hey thanks for the fixes, but i still get the error that the file couldn't be found. Do you know what else i could try?

subzerofun avatar Jan 26 '17 22:01 subzerofun