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

Need help #7

Open
dagand1 opened this issue Apr 12, 2017 · 8 comments
Open

Need help #7

dagand1 opened this issue Apr 12, 2017 · 8 comments

Comments

@dagand1
Copy link

dagand1 commented Apr 12, 2017

Hi. It's me again :)

K, i used command $ python rnn_tf.py and some hours ago it was finished. And what should i do now?
Should i use command $ python rnn_tf.py saved/model.ckpt "The " to generate my text?
Will it generate a new file at "saved" directory ? How can i find text file?
Or mb i need to use another prefix? I didn't understand it yet :( Can u explain me a little, please?

Thx a lot and sorry for giving u some work :)

@spiglerg
Copy link
Owner

Did you see the output of the program at the end of training (it should output the first example of generated text).

If you use the command with saved/model.ckpt, it will use the trained model to generate new text. The trained model is saved automatically in that folder after you run the program in training mode. :)

@dagand1
Copy link
Author

dagand1 commented Apr 13, 2017

Yeah. I saw, thx :)
But there's one more question: if i want to use another textfile to train with another language, should i delete model.ckpt or delete some other files. Or all files (language, characters for new language) will be rewrite and work correctly?

@spiglerg
Copy link
Owner

Well, model.ckpt will get overwritten with the new training anyway. Just replace the line of code where the text file is loaded with your own text file. :)

@dagand1
Copy link
Author

dagand1 commented Apr 13, 2017

Okay. If i'll try to set something like 50000 batches - will it be too much or everything will be ok? :)

@spiglerg
Copy link
Owner

Awesome. :)

@dagand1
Copy link
Author

dagand1 commented Apr 18, 2017

And what about using 2 or more texts to train the model?
For example:
There's a writer and soon he'll die (holly shit!), but he want to train this programm to continue his job. He wants to train this programm over 100+ texts for learning his "writing style".

Can we do something like that?

@spiglerg
Copy link
Owner

Just concatenate the text files / copy all their contents in the same file / modify the code to load all the text files you want and concatenate them in the same string used for training. ;)

@dagand1
Copy link
Author

dagand1 commented Apr 18, 2017

Thanks!

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

2 participants