会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
相思似海深,旧事如天远
江西理工大学2020级研究生,欢迎沟通交流
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2021年7月27日
ValueError: This model has not yet been built. Build the model first by calling `build()` or calling `fit()` with some data, or specify an `input_shape` argument in the first layer(s) for automatic
摘要: 源代码: model = vgg16() model.summary() 错误提示: D:\Anaconda\envs\tensorflow\python.exe D:/PYCHARMprojects/Dailypractise/P29.py 2021-07-27 15:02:48.283426:
阅读全文
posted @ 2021-07-27 15:10 追风赶月的少年
阅读(2407)
评论(0)
推荐(0)
2021年7月26日
画出训练过程随时期(Epoch)的变化曲线
摘要: 要求:查看存储在Training中的训练过程,并分别画出loss,acc,val_loss,val_acc随时期(Epoch)的变化曲线,代码如下(可供参考): #以epoch为横坐标,在同一坐标下画出acc、val_acc随epoch变化的曲线图 #定义show_Training_history(
阅读全文
posted @ 2021-07-26 20:22 追风赶月的少年
阅读(2127)
评论(0)
推荐(0)
ImportError: ('Failed to import pydot. You must `pip install pydot` and install graphviz (https://graphviz.gitlab.io/download/), ', 'for `pydotprint` to work.')
摘要: 错误提示: 修正: #装包pip install pydot pip install pydotplus pip install graphviz 点击提示网址:https://graphviz.gitlab.io/download/ 下载后双击运行,安装后找到子文件夹bin目录地址(我这里是C:\
阅读全文
posted @ 2021-07-26 19:47 追风赶月的少年
阅读(1158)
评论(0)
推荐(0)
2021年7月25日
FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。
摘要: 源代码: train_dir = os.path.join(base_dir, 'train') os.mkdir(train_dir) 错误提示: FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。 修改代码: train_dir = os.path.
阅读全文
posted @ 2021-07-25 23:21 追风赶月的少年
阅读(7213)
评论(0)
推荐(0)
2021年7月23日
GAN生成式对抗生成网络
摘要: 源代码: # -*- coding = utf-8 -*- # @Time : 2021/7/23 # @Author : pistachio # @File : p26.py # @Software : PyCharm # GAN generator network import keras fr
阅读全文
posted @ 2021-07-23 12:37 追风赶月的少年
阅读(154)
评论(0)
推荐(0)
用变分自编码器生成图像
摘要: # -*- coding = utf-8 -*- # @Time : 2021/7/22 # @Author : pistachio # @File : p25.py # @Software : PyCharm import keras from keras import layers from k
阅读全文
posted @ 2021-07-23 10:42 追风赶月的少年
阅读(203)
评论(0)
推荐(0)
loss=nan,val loss=nan
摘要: 021-07-23 09:43:04.902503: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Li
阅读全文
posted @ 2021-07-23 09:51 追风赶月的少年
阅读(458)
评论(0)
推荐(0)
tensorflow.python.eager.core._SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors,
摘要: 错误提示: D:\Anaconda\envs\tensorflow\python.exe D:/PYCHARMprojects/Dailypractise/p25.py 2021-07-23 09:39:36.083143: I tensorflow/core/platform/cpu_featur
阅读全文
posted @ 2021-07-23 09:43 追风赶月的少年
阅读(389)
评论(0)
推荐(0)
2021年7月22日
DeepDream(python深度学习)
摘要: 其中代码有部分修改,因为原来书中的代码不能运行(可能是版本原因) 源码: # -*- coding = utf-8 -*- # @Time : 2021/7/22 # @Author : pistachio # @File : p24.py # @Software : PyCharm from ke
阅读全文
posted @ 2021-07-22 19:21 追风赶月的少年
阅读(348)
评论(0)
推荐(0)
RuntimeError: tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
摘要: 导包时加入以下代码: import tensorflow as tf tf.compat.v1.disable_eager_execution()
阅读全文
posted @ 2021-07-22 19:14 追风赶月的少年
阅读(1757)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告