解决densenet121的weights参数=imagenet的问题
原链接:https://github.com/fchollet/deep-learning-models/releases
网盘链接:https://pan.baidu.com/s/1tue2K_ThPiVoUYWSy2BJAQ
提取码:wbo7
# 用法:传入路径即可
path_weights = r"C:\Users\Administrator\.keras\models\densenet121_weights_tf_dim_ordering_tf_kernels_notop.h5"
backbone = DenseNet121(include_top=False, weights=path_weights, input_shape=(224,224,3))