zl程序教程

您现在的位置是:首页 >  后端

当前栏目

成功解决UserWarning: Update your `Conv2D` call to the Keras 2 API问题

API 解决 to The 成功 update your call
2023-09-14 09:04:35 时间

成功解决UserWarning: Update your `Conv2D` call to the Keras 2 API问题

 

 

 

目录

解决问题

解决思路

解决方法


 

 

 

 

解决问题

UserWarning: Update your `Conv2D` call to the Keras 2 API:

 

 

 

解决思路

出现这些警告是由于keras的版本更新的问题,这里是keras2.0的更新文档的链接: 
 https://github.com/fchollet/keras/wiki/Keras-2.0-release-notes
所以定义卷积层需要用Conv2D而不再是Convolution2D

 

 

 

 

解决方法

将所有的Convolution2D替换为Conv2D

哈哈,大功告成!