SullyChen / Autopilot-TensorFlow

A TensorFlow implementation of this Nvidia paper: https://arxiv.org/pdf/1604.07316.pdf with some changes
MIT License
1.25k stars 425 forks source link

TypeError: src data type = 17 is not supported #44

Closed yangyunfei16 closed 4 years ago

yangyunfei16 commented 4 years ago

When I use run_dataset.py to run my model, the error is as follows, how can I solve it?

Predicted steering angle: [[-14.39868]] degrees Traceback (most recent call last): File "run_dataset.py", line 78, in new_img=crop_sky(change_bright(full_image)) File "run_dataset.py", line 25, in change_bright hsv = cv2.cvtColor(img, cv2.COLOR_RGB2HSV) TypeError: src data type = 17 is not supported

SullyChen commented 4 years ago

You must convert your image to a different type before passing to cvtColor, as type 17 (signed 8-bit) is not supported by that function.

Rudra4321 commented 3 years ago

TypeError Traceback (most recent call last)

in 48 #x = np.fromstring(img, dtype='uint8') 49 #img = cv2.imdecode(img, cv2.IMREAD_UNCHANGED) ---> 50 img = cv2.resize(img, (600,400) ) TypeError: src data type = 17 is not supported