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
OpenCV3

opencvpix2pix
3 votesJW229.00
1 Answers
JO218.00
3

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
Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?