Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload resolution failed error #15

Open
colinpro opened this issue Jul 25, 2023 · 1 comment
Open

Overload resolution failed error #15

colinpro opened this issue Jul 25, 2023 · 1 comment

Comments

@colinpro
Copy link

十分感谢分享。 在使用 https://github.com/TommyZihao/Train_Custom_Dataset/blob/main/%E5%9B%BE%E5%83%8F%E5%88%86%E7%B1%BB/6-%E5%8F%AF%E8%A7%A3%E9%87%8A%E6%80%A7%E5%88%86%E6%9E%90%E3%80%81%E6%98%BE%E8%91%97%E6%80%A7%E5%88%86%E6%9E%90/4.shap%E5%B7%A5%E5%85%B7%E5%8C%85/%E3%80%90C2%E3%80%91Pytorch-%E6%B0%B4%E6%9E%9C%E5%9B%BE%E5%83%8F%E5%88%86%E7%B1%BB%E5%8F%AF%E8%A7%A3%E9%87%8A%E6%80%A7%E5%88%86%E6%9E%90.ipynb 这里的code的时候,第58行
shap_values = explainer(input_img, max_evals=n_evals, batch_size=batch_size, outputs=[28])
出现,这样的报错:
error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'blur'

Overload resolution failed:

  • src is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'src'

在我自己做的notebook里也有这个问题。 测试下来可能是 Xtr[0].shape 的类型问题。

还麻烦子豪兄再运行一遍,看会不会报同样的错误。

@colinpro
Copy link
Author

更新:也可能是OpenCV版本问题,请问子豪兄的版本是?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant