Skip to content

Opencv4.6 Problems #12

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

Open
GinkgoX opened this issue Jul 23, 2022 · 9 comments
Open

Opencv4.6 Problems #12

GinkgoX opened this issue Jul 23, 2022 · 9 comments

Comments

@GinkgoX
Copy link

GinkgoX commented Jul 23, 2022

when I test the pyhton script:
File "...\yolact-opencv-dnn-cpp-python-main\main_yolact.py", line 152, in decode
priors[:, 2:] * np.exp(loc[:, 2:] * self.variances[1]),
ValueError: operands could not be broadcast together with shapes (10597,2) (10597,79)

the dimension is not match

When I test the cpp script:
the result as follows:
image

@74284853
Copy link

I have the same problem as you. Is there any solution,please?

@74284853
Copy link

@by011
Copy link

by011 commented Nov 2, 2022

Same problem

@74284853
Copy link

74284853 commented Nov 2, 2022

Same problem

The problem is the same. I solved it by modifying the opencv version to 4.5.5.

@by011
Copy link

by011 commented Nov 2, 2022

tq very much

@by011
Copy link

by011 commented Nov 2, 2022

Same problem

The problem is the same. I solved it by modifying the opencv version to 4.5.5.

May i know how to downgrade opencv 4.6.0 to 4.5.5 ?
I tried conda uninstall opencv and conda install opencv 4.5.5 but didnt work

@74284853
Copy link

74284853 commented Nov 2, 2022

Same problem

The problem is the same. I solved it by modifying the opencv version to 4.5.5.

May i know how to downgrade opencv 4.6.0 to 4.5.5 ? I tried conda uninstall opencv and conda install opencv 4.5.5 but didnt work

pip install opencv-python==4.5.1.18
(As long as the version number is 4.5.x)

@74284853
Copy link

74284853 commented Nov 2, 2022

(first):pip uninstall opencv-python

@by011
Copy link

by011 commented Nov 2, 2022

(first):pip uninstall opencv-python

will try it out, thank you very much

edited: yes, it worked, tq very much, but the outcome is bad compare to original pytorch version of YOLACT.

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

3 participants