![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
深度学习
在学习深度学习过程中的一些收获和心得。
i-LucAs
这个作者很懒,什么都没留下…
展开
-
tensorflow have no attribute placeholder
tf.placeholder()改为tf.compat.v1.placeholder()并添加语句tf.compat.v1.disable_eager_execution()原创 2021-05-09 16:44:39 · 316 阅读 · 2 评论 -
module ‘tensorflow‘ has no attribute ‘app‘
tf 2.x已经移除了这个组件tf.app 改为 tf.compat.v1.app原创 2021-05-09 16:40:02 · 2366 阅读 · 2 评论 -
win10+anaconda+cuda10.1+cudnn7.6.5+tensorflow-gpu=2.3.0安装成功
写在前面:我的cuda10.1+cudnn7.6.5安装好后,在Anaconda的base环境里安装了tensorflow-gpu=2.3.0,但不管怎么尝试tensorflow都不用gpu,晚上灵机一动发现windows终端cmd里nvcc -V显示是正确的Anaconda Prompt的base环境里nvcc -V不是内部命令或外部命令,也不是可运行程序然后我才突然意识到,base环境可能也是一个虚拟环境?我的cuda+cudnn是安装在windows里的,并没有安装到base环境下,然后想起下原创 2021-04-13 00:28:50 · 540 阅读 · 1 评论 -
win10/CUDA10.2下theano配置GPU加速及一系列问题
已配置好theano 1.0.4、pygpu 0.7.6、CUDA 10.2、CUDNN等1. 测试目前theano使用cpu还是gpufrom theano import function, config, shared, tensorimport numpyimport timevlen = 10 * 30 * 768 # 10 x #cores x # threads per ...原创 2020-04-07 18:32:15 · 1532 阅读 · 8 评论 -
Keras库报错:ValueError: Negative dimension size caused by subtracting 2 from 1 for 'conv2d_1/convolutio
dim_ordering: One of {“th”, “tf”}. “tf” mode means that the images should have shape (samples, height, width, channels), “th” mode means that the images should have shape (samples, channels, height...原创 2020-04-02 10:02:18 · 1573 阅读 · 0 评论 -
MATLAB实现SRCNN图像重建算法
原论文和源代码图像被转化到 YCbCr 色彩空间,并只使用亮度通道Y,原因在于相较于色差,人类视觉对亮度变化更为敏感。修改过的代码将最终输出图像合回彩色。验证“将R,G,B格式转换为YCbCr,只计算Y分量(亮度分量),结果会比直接计算要高几个dB。”目录...原创 2020-03-24 09:36:59 · 1795 阅读 · 0 评论