【发布时间】:2020-09-06 23:35:40
【问题描述】:
我正在使用 ResNet50 模型进行特征提取。我有两个模型以下列方式初始化:
from tensorflow.keras.applications import ResNet50
model1=ResNet50(weights="imagenet", include_top=False)
model2=ResNet50(weights="imagenet", include_top=True)`
现在,当我绘制模型架构时,我得到了这个:(我只展示了架构的结尾)
它们都不以avg_pool: GlobalAveragePooling2D 结尾,即我希望模型的输出为 (?, 2048)。是否有可能获得架构?使用 imagenet 权重获得这样的架构将简化特征提取。
不胜感激。
【问题讨论】:
标签: tensorflow keras resnet imagenet