We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8b35d commit 79b6d6eCopy full SHA for 79b6d6e
goturn/network/regressor.py
@@ -65,7 +65,7 @@ def preprocess(self, image):
65
image_out = cv2.cvtColor(image, cv2.COLOR_BGRA2GRAY)
66
elif num_channels == 3 and image.shape[2] == 4:
67
image_out = cv2.cvtColor(image, cv2.COLOR_BGRA2BGR)
68
- elif num_channels == 3 and image.shape[2] == 2:
+ elif num_channels == 3 and image.shape[2] == 1:
69
image_out = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR)
70
else:
71
image_out = image
0 commit comments