为什么ResNet50 include_top参数给出错误?

时间:2018-11-18 04:56:59

标签: keras deep-learning

Keras版本-2.2.4

Python-3.6.6

问题:

from resnet50 import ResNet50

enter image description here ----> 6个模型= ResNet50(input_tensor = image_input, include_top = True,weights ='imagenet')

TypeError:_obtain_input_shape()获得了意外的关键字参数'include_top'

有解决办法吗?

1 个答案:

答案 0 :(得分:0)

替换:

model = ResNet50(input_tensor=image_input, include_top=True,weights='imagenet')

使用方式:

model = ResNet50(input_tensor=image_input,require_flatten=True,weights='imagenet')