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

OpenCV版本可能不兼容 #11

Open
ZhangHaoyou opened this issue Apr 10, 2024 · 0 comments
Open

OpenCV版本可能不兼容 #11

ZhangHaoyou opened this issue Apr 10, 2024 · 0 comments

Comments

@ZhangHaoyou
Copy link

Exception has occurred: error
OpenCV(4.9.0) 👎 error: (-5:Bad argument) in function 'resize'

Overload resolution failed:

  • src is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'src'
    File "/utils.py", line 486, in show_attention
    visualize_grid_attention_v2(img_path,
    File "
    /utils.py", line 497, in
    show_attention()
    cv2.error: OpenCV(4.9.0) 👎 error: (-5:Bad argument) in function 'resize'
    Overload resolution failed:
  • src is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'src'
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