【发布时间】:2021-10-03 08:00:39
【问题描述】:
我想从使用 Inception Resnet V2 模型提取的特征向量开始创建一个自动编码器,并遵循下图所示的图表:
这是我此刻写的代码:
image_size = (150, 150, 3)
model = InceptionResNetV2(weights='imagenet', include_top=False, input_shape=image_size)
for layer in model.layers:
layer.trainable = False
feature = model.predict(x[:10])
print(feature.shape) # (10, 3, 3, 1536)
在 Keras 中实现这一点的方法是什么?感谢您的宝贵时间。
【问题讨论】:
标签: python tensorflow keras autoencoder