调用decode_predictions()函数时,会下载分类信息文件到默认文件夹下,
- windows:
c:\当前登录用户名\.keras\models
模型的文件名为imagenet_class_index.json,该文件指明了 ImageNet 大赛所用的 1000个图像类 的信息。
关于 ImageNet 参见:https://www.malaoshi.top/show_1EF4vgpYC8Cq.html
官方下载地址:
https://s3.amazonaws.com/deep-learning-models/image-models/imagenet_class_index.json
由于下载地址在 aws (亚马逊)上,需要梯子
下载地址:
https://gitee.com/65242847/tensorflow2/blob/master/vgg16/imagenet_class_index.json
导出内容查看:
https://gitee.com/65242847/tensorflow2/blob/master/vgg16/imagenet_classes.txt