我有一个数据集(Tiny ImageNet),其中的图像是64 x 64的,但我想使用预先训练的模型: InceptionResNetV2,因为所有其他模型的准确性都很低。
我可以在image_gen.flow_from_dataframe函数中将target_size中的尺寸加倍到128, 128,并在InceptionResNetV2中使用输出吗?
将目标大小加倍会影响训练吗?我的意思是,它会拉伸图像或在图像周围增加空白。
这种方式合适吗?或者有没有更好的方法来使用InceptionResNetV2训练微小的图像?
发布于 2020-07-17 19:51:01
您可以在ImageDataGenerator (target_size=(224,224))或tf.keras.layers.Input( shape=input_shape ) part中定义输入图像大小。
https://stackoverflow.com/questions/62953272
复制相似问题