![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug
LYROOO
这个作者很懒,什么都没留下…
展开
-
ResourceExhaustedError: OOM when allocating tensor with shape[1,128,256,256] and type float ……
运行代码时,报标题错。原因显存不够:可以从以下几处排查:1、tensor shape[1,128,256,256],batch_size可以改小,我这里是1了,后面256x256图片尺寸也可以改小,2、我改了训练集batch后发现还是报错,最后发现是测试集几次性输入所有图片,所以要注意排查测试集和数据集都要分批送进网络3、在之前改bug的时候- -干了个蠢事:gpu_op...原创 2018-12-01 16:47:09 · 16464 阅读 · 2 评论 -
tensorflow 使用VGG16模型VGG_16.tfmodel 报错 GraphDef cannot be larger than 2GB.
https://hehuihui1994.github.io/hehuihui1994.github.io/2017/07/19/TensorFlow常见问题/爆掉应该是因为所有的变量都加载到了默认图里。可能因为我跑完第一个model之后,再跑第二个model,我以为会覆盖的,但是第一个model中的变量还在图中…解决方法:在跑之前清除以下默认图。#清空默认图t...原创 2018-12-03 19:34:55 · 1240 阅读 · 0 评论 -
tensorflow遇到的一些错误
1、tensorflow dtype = t.dtype.base_dtype AttributeError: 'float' object has no attribute 'dtype' 参考网址:http://bbs.bugcode.cn/t/58066 我报错的行是: disc_gradients = disc_optimizer.compute...原创 2019-06-02 23:16:56 · 781 阅读 · 2 评论