Keras版本-2.2.4
Python-3.6.6
问题:
from resnet50 import ResNet50
----> 6个模型= ResNet50(input_tensor = image_input, include_top = True,weights ='imagenet')
TypeError:_obtain_input_shape()获得了意外的关键字参数'include_top'
有解决办法吗?
答案 0 :(得分:0)
替换:
model = ResNet50(input_tensor=image_input, include_top=True,weights='imagenet')
使用方式:
model = ResNet50(input_tensor=image_input,require_flatten=True,weights='imagenet')