Grad-CAM热力图
参考博客step1 将预测图片输入模型进行处理img = image.load_img(img_path, target_size=(224,224))x = image.img_to_array(img) # img对象转化为array对象 shape=(224,224,3)x = np.expand_dims(x,axis=0) # 升维,添加一个batch维x = preprocess_input(x) # 对图片使用均值和标准差进行归一化step2 求模型输出关于最后.
原创
2021-07-27 21:02:48 ·
1930 阅读 ·
0 评论