Discussions>Pix2Pix error when running combine_A_and_B script.>

Pix2Pix error when running combine_A_and_B script.

I just tried to run combine_A_and_B.py script, but got this error:

AttributeError: 'module' object has no attribute 'CV_LOAD_IMAGE_COLOR'

What's the problem? I'm using

Python 3.5

3 votesJW326.00
1 Answers

It's not about an issue of Pix2Pix model. It's about your OpenCV version.

You just need to change the way you read the image by putting another constants there

img_1 = cv2.imread(path_1, cv2.IMREAD_COLOR) # or 1
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?