Skip to content

Commit

Permalink
minor bug in preprocess function
Browse files Browse the repository at this point in the history
bug reported by [@sydney0zq](#10)
  • Loading branch information
nrupatunga authored Dec 15, 2017
1 parent 1a8b35d commit 79b6d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goturn/network/regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def preprocess(self, image):
image_out = cv2.cvtColor(image, cv2.COLOR_BGRA2GRAY)
elif num_channels == 3 and image.shape[2] == 4:
image_out = cv2.cvtColor(image, cv2.COLOR_BGRA2BGR)
elif num_channels == 3 and image.shape[2] == 2:
elif num_channels == 3 and image.shape[2] == 1:
image_out = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR)
else:
image_out = image
Expand Down

0 comments on commit 79b6d6e

Please sign in to comment.