attributeError: module 'keras.utils' has no attribute 'get_file'
将代码改为:
from keras.utils.data_utils import get_file
pretrained_url = "https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels.h5"
weights_path = get_file(pretrained_url.split("/")[-1], pretrained_url)