Finish Tensorflow training in progress

我的梦境 提交于 2019-12-16 18:03:41

问题


Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?

I'm currently training Tensorflow-wavenet with a directory of .wav audio files. Now, I want to stop the training and generate output, however the commands are not working. Here is terminal training:

I have seen this stackoverflow post, but tf.train.export_meta_graph does nothing. Also, if I try to generate output in a new terminal tab, like so:

cd /Users/ruchirbaronia/Downloads/tensorflow-wavenet-master 
python generate.py --wav_out_path=generated.wav --samples 16000 logdir/train/2018-01-03T09-18-15/model.ckpt-0.index

I get this error which basically says I can't generate output since training data has not been saved. How can I save and finish training?


回答1:


train.py has an option for how often to save a checkpoint. For example,

train.py --checkpoint_every=10 ...

to save the checkpoint every 10 steps. By default, it is saved every 50 steps. Once you have a checkpoint, you should be able to use generate.py.



来源:https://stackoverflow.com/questions/48083474/finish-tensorflow-training-in-progress

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!