RNN_Text_Generation_Tensorflow icon indicating copy to clipboard operation
RNN_Text_Generation_Tensorflow copied to clipboard

Need help

Open dagand1 opened this issue 7 years ago • 8 comments

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 :)

dagand1 avatar Apr 12 '17 08:04 dagand1

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. :)

spiglerg avatar Apr 12 '17 11:04 spiglerg

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?

dagand1 avatar Apr 13 '17 07:04 dagand1

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. :)

spiglerg avatar Apr 13 '17 12:04 spiglerg

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

dagand1 avatar Apr 13 '17 23:04 dagand1

Awesome. :)

spiglerg avatar Apr 14 '17 12:04 spiglerg

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?

dagand1 avatar Apr 18 '17 09:04 dagand1

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. ;)

spiglerg avatar Apr 18 '17 11:04 spiglerg

Thanks!

dagand1 avatar Apr 18 '17 11:04 dagand1