正在进行Tensorflow培训 [英] Finish Tensorflow training in progress

查看:103
本文介绍了正在进行Tensorflow培训的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据丢失:不是一个稳定的(错误的魔术数字):也许您的文件在 不同的文件格式,您需要使用不同的还原 运算符?

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?

我目前正在使用 Tensorflow-wavenet 进行培训. .wav音频文件的目录.现在,我想停止训练并生成输出,但是命令不起作用.这是终端培训:

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:

我见过此stackoverflow帖子,但是tf.train .export_meta_graph不执行任何操作.另外,如果我尝试在新的终端标签中生成输出,就像这样:

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?

推荐答案

train.py可以选择保存检查点的频率.例如,

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

train.py --checkpoint_every=10 ...

每10个步骤保存一次检查点.默认情况下,每50步保存一次.拥有检查点后,您应该可以使用generate.py.

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.

这篇关于正在进行Tensorflow培训的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆