我正在尝试对Keras中的现有模型进行微调,以对我自己的数据集进行分类。到目前为止,我已经尝试了以下代码(摘自Keras文档:),其中的初始V3在一组新的类上进行了微调。from keras.applications.inception_v3 import InceptionV3from keras.models# create the base pre-trained mo
我试图微调预先训练的Inceptionv3在Keras为一个多标签(17)预测问题。下面是代码:base_model = InceptionV3(weights='imagenet', include_top=Falserecompile the model for these modifications to take effectfrom k
我在Keras中使用带imagenet权重的InceptionV3。我使用的Keras版本是2.2.4,而Keras-应用程序的版本是1.0.8。tensorflow版本为1.14.0。我遵循的是使用InceptionV3进行迁移学习的标准方法,如概述的。我得到了这个错误ValueError: Input 0 is incompatible with layer global_average_pooling2d_3: expected ndim=4, foundMWE在下面
from <