yolact-opencv-dnn-cpp-python icon indicating copy to clipboard operation
yolact-opencv-dnn-cpp-python copied to clipboard

Opencv4.6 Problems

Open GinkgoX opened this issue 1 year ago • 9 comments

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

GinkgoX avatar Jul 23 '22 09:07 GinkgoX

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

74284853 avatar Sep 28 '22 08:09 74284853

74284853 avatar Sep 29 '22 03:09 74284853

Same problem

by011 avatar Nov 02 '22 03:11 by011

Same problem

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

74284853 avatar Nov 02 '22 03:11 74284853

tq very much

by011 avatar Nov 02 '22 03:11 by011

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

by011 avatar Nov 02 '22 06:11 by011

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 avatar Nov 02 '22 06:11 74284853

(first):pip uninstall opencv-python

74284853 avatar Nov 02 '22 06:11 74284853

(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.

by011 avatar Nov 02 '22 06:11 by011