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

Finds no model #6

Open
Eumi opened this issue Apr 10, 2017 · 11 comments
Open

Finds no model #6

Eumi opened this issue Apr 10, 2017 · 11 comments

Comments

@Eumi
Copy link

Eumi commented Apr 10, 2017

I get this error when i type in "main.py --test --sample_length 500"

Warning: No model found in 'C:\save/model'. Please train a model before trying to predict
The End! Thanks for using this program

but theres something in there..i allready trained it and it saved ..and theres something in the folder =/ pls help im so close.

@Conchylicultor
Copy link
Owner

What is the content of C:\save/model exactly ?

@Eumi
Copy link
Author

Eumi commented Apr 11, 2017

the folders "progression, test and train" than files named "checkpoint",
"model.ckpt.data-00000-of-00001","model.ckpt.index" , "model.ckpt.meta" and "params"

"model.ckpt.data-00000-of-00001" , shouldnt that be a higher number? i let it run to 4000 epochs . In "progression" are files named "4000-test-0" and so on.

@Eumi
Copy link
Author

Eumi commented Apr 11, 2017

my training data in cmd looksl ike this.

------- Epoch 5 (lr=0.0001) -------
Subsampling the songs (train)...
Shuffling the dataset...
Generating batches...
Subsampling the songs (test)...
Shuffling the dataset...
Generating batches...
Training: 100%|##########################################################################| 1/1 [00:02<00:00, 2.07s/it]
Epoch finished in 0:00:02.071642

@Eumi
Copy link
Author

Eumi commented Apr 11, 2017

also when i delete the "save" folder from C:\ i get the error message
File "C:\python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 469, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: C:/save/model\train

i did that by hand and created the folder model (in save folder) and opened it ....and in the folder model i created train ...than i run main.py and it puts stuff in it. ...maybe that is an error as well idk ...i have no idea of programming sry =,O

i really hope you can help me with this hopefully last problem!
I also made an administrator account and it failed....than i tried to change root_dir but it has the same error =,O

seriously, i would be so grateful if u know how i can fix this =)

@Eumi
Copy link
Author

Eumi commented Apr 11, 2017

same problem with linux .... but i figured out my graphic card is not this ..3.0 ready for cuda ..wich it would need to run it =O only 2.3 or so ..is that the problem?

@Conchylicultor
Copy link
Owner

Conchylicultor commented Apr 11, 2017 via email

@Eumi
Copy link
Author

Eumi commented Apr 11, 2017

so i cant do anything? or do i need to use another version of tensorflow and than its fixed? i just have it installed for this program only

@Conchylicultor
Copy link
Owner

Conchylicultor commented Apr 11, 2017 via email

@Eumi
Copy link
Author

Eumi commented Apr 12, 2017

HAHA !! it works =D im so lucky thanks <3 ..you are right the output is not so good for now ...but it definitely does something ... i had a look at the midi files (one of them) and it definitely looks like chords ...i am impressed and very thankful for your help =D ( i saved my progress before i started to play around with it, and imported it back) this is awesome...and only the fact that it is working now is already a relief =) i will try different inputs with it (already figured out a way how i can download midi files and edit them so the program imports them =) ) great work! thumbs up for u!

@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? Shouldn't it be using the checkpoint file that has been saved during training instead?

@patalanov
Copy link

patalanov commented Dec 19, 2017

@erikamenezes yes, this is frustrating. it is a beautiful program, but it goes to waste when saver format is outdated. the owner should update it.

on composer.py I've changed this constant:

self.MODEL_EXT = '.meta'

and inside _main_test() (line 327), I did this:

saver = tf.train.import_meta_graph('save/model/model.ckpt.meta')
saver.restore(self.sess, tf.train.latest_checkpoint('save/model/.'))
            

this seems to work, still depending on further investigation on results.

my tensorflow version for this environment is 1.2, and some minor tweaks in tf syntax were also necessary.

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

4 participants