python - DenseNet201 架构的输入不兼容问题
问题描述
我正在使用densenet201架构从RGB图像中提取特征,但它给出了这个错误ValueError: Input 0 is incompatible with layer model: expected shape=(None, 224, 224, 3), found shape=(None, 224, 224, 4 )
解决方案
推荐阅读
- reactjs - 创建 React 应用程序 - 如何在全局范围内模拟您自己的组件
- laravel - For 循环请求 Laravel
- javascript - 如何根据 JavaScript 中的另一个数组对对象数据数组进行分组、重组和计数
- javascript - Ionic 5 / Angular 8 在点击外部时切换 div
- android-jetpack-compose - 如何更改jetpack compose中的状态栏颜色?
- python - 尽管没有错误,但 Popen 通信的输出具有非空 stderr
- c# - 如何使用 efcore 在 Sum() 中处理除以零
- google-sheets - Google 表格:如何根据上一行中的值过滤范围?
- jquery - jquery下拉列表检测是否选择了默认值
- database-replication - 在 SAP ASE 中,主节点上的更改未复制到备用节点 - ASE 复制