From d7ed19821513928670114ac18338ff3374ef49c4 Mon Sep 17 00:00:00 2001 From: "jules@lens" Date: Wed, 18 Apr 2018 12:35:19 +0200 Subject: fix opencv bug --- datasets/combine_A_and_B.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'datasets/combine_A_and_B.py') diff --git a/datasets/combine_A_and_B.py b/datasets/combine_A_and_B.py index 70907ad..dd28f21 100644 --- a/datasets/combine_A_and_B.py +++ b/datasets/combine_A_and_B.py @@ -42,7 +42,9 @@ for sp in splits: if args.use_AB: name_AB = name_AB.replace('_A.', '.') # remove _A path_AB = os.path.join(img_fold_AB, name_AB) - im_A = cv2.imread(path_A, cv2.CV_LOAD_IMAGE_COLOR) - im_B = cv2.imread(path_B, cv2.CV_LOAD_IMAGE_COLOR) + #im_A = cv2.imread(path_A, cv2.CV_LOAD_IMAGE_COLOR) + #im_B = cv2.imread(path_B, cv2.CV_LOAD_IMAGE_COLOR) + im_A = cv2.imread(path_A, cv2.IMREAD_COLOR) + im_B = cv2.imread(path_B, cv2.IMREAD_COLOR) im_AB = np.concatenate([im_A, im_B], 1) cv2.imwrite(path_AB, im_AB) -- cgit v1.2.3-70-g09d2