Closed littletomatodonkey closed 2 years ago
Hi,
报错原因是输入给numpy.mean
的数据格式不对。
我这边没有出现这个问题,有可能是图片读入的时候出问题了。可以查看一下以下代码在jupyter下,是否能正常显示图片?
img_path = 'assets/catdog.png'
x = Image.fromarray(read_image(img_path)[0])
x
如果图片正常显示的话,麻烦将python环境信息贴一下,我看看是否能复现上述问题。
图片可以正常显示的,我刚才测试了一下,paddle2.3.1可以正常使用,我自己编译的paddle无法正常显示(commit id : a635a8a5c4ec914f57058bdcccf854d620ce5f42 , 约8月29号编译的)
更新一下,paddle2.3.2也可以,可能与我编译的包仅用来做推理有关系,多谢
(optional) Briefly introduce yourself.
🐛 Bug
运行example_grad_cam_cv.ipynb时会报错
To Reproduce
Steps to reproduce the behavior:
报错的命令为