にフィルタの対応する寸法と一致していない、次のコードが番号iがResnet50に基づいてモデルを構築するkerasを使用していKeras
input_crop = Input(shape=(3, 224, 224))
# extract feature from image crop
resnet = ResNet50(include_top=False, weights='imagenet')
for layer in resnet.layers: # set resnet as non-trainable
layer.trainable = False
crop_encoded = resnet(input_crop)
下に示されているが、私はエラーが発生しました
'ValueError: number of input channels does not match corresponding dimension of filter, 224 != 3'
どのように修正できますか?
あなたはどのようなバックエンドあなたのkeras.jsonファイルの内容は何ですか? – maz