发布于2019-08-07 12:39 阅读(2965) 评论(0) 点赞(0) 收藏(4)
TensorFlow wasn't compiled to use SSE (etc.) instructions, but these are available
解决:os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
[TensorFlow wasn't compiled to use SSE (etc.) instructions, but these are available]
参数出错
beta = tf.Variable(beta0, name='beta') #不能这么写,l2计算就马上出错,变为nan
改为
beta = tf.Constant(beta0)
saver.restore训练好的模型出错saver.restore(sess, checkpoint_path)
解决:
[],即要回复的模型文件名中不能含有[]
./model_epoch10
rather than model_epoch10
- FLAGS = tf.flags.FLAGS
- tf.flags.DEFINE_string("checkpoint_path","","...")
后面如果再定义FLAGS.checkpoint_path = "./.../..."是无效的,也就是说FLAGS.***是不能赋值的!导致出错。checkpoint_path = tf.train.latest_checkpoint(checkpoint_path)
训练结果的文件夹居然要和恢复时文件所在文件夹一样(训练文件夹不能改名字)!不然就会报错。
tf.contrib.slim.learning.train(..., saver=saver) # 模型中间结果保存时出错
sv.saver.save(sess, sv.save_path, global_step=sv.global_step)
解决:1 use tf.reset_default_graph() to reset the graph instead of using with tf.Graph().as_default()
["Coordinator stopped with threads still running" happens when using cross-validation]
[coord.request_stop() doesn't stop the threads]
error显示的是gpu0的内存耗尽了,可能是多用户时其它用户使用中,这时可以通过nvidia-smi查看gpu使用情况,并在代码中指定使用其它闲置的gpu如gpu1:os.environ["CUDA_VISIBLE_DEVICES"] = "1"。
from: -柚子皮-
ref:
作者:遥远的她
链接:https://www.pythonheidong.com/blog/article/10909/ffd734b5ebbb4311417e/
来源:python黑洞网
任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任
昵称:
评论内容:(最多支持255个字符)
---无人问津也好,技不如人也罢,你都要试着安静下来,去做自己该做的事,而不是让内心的烦躁、焦虑,坏掉你本来就不多的热情和定力
Copyright © 2018-2021 python黑洞网 All Rights Reserved 版权所有,并保留所有权利。 京ICP备18063182号-1
投诉与举报,广告合作请联系vgs_info@163.com或QQ3083709327
免责声明:网站文章均由用户上传,仅供读者学习交流使用,禁止用做商业用途。若文章涉及色情,反动,侵权等违法信息,请向我们举报,一经核实我们会立即删除!