You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for the code. I'm running "imageLaneDetection.py" with culan tflite model and change model_type value in imageLaneDetection.py like:
model_type = ModelType.CULANE
then, i got these on terminal:
163: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
return np.array(lane_points_mat), np.array(lanes_detected)
Traceback (most recent call last):
File "imageLaneDetection.py", line 18, in <module>
output_img = lane_detector.detect_lanes(img)
File "/home/ubuntu/Codes/TfLite-Ultra-Fast-Lane-Detection-Inference/ultrafastLaneDetector/ultrafastLaneDetector.py", line 82, in detect_lanes
visualization_img = self.draw_lanes(image, self.lanes_points, self.lanes_detected, self.cfg, draw_points)
File "/home/ubuntu/Codes/TfLite-Ultra-Fast-Lane-Detection-Inference/ultrafastLaneDetector/ultrafastLaneDetector.py", line 175, in draw_lanes
cv2.fillPoly(lane_segment_img, pts = [np.vstack((lanes_points[1],np.flipud(lanes_points[2])))], color =(255,191,0))
NameError: name 'lanes_points' is not defined
is the error message means the "lanes_points" variable in ultrafastLaneDetector.py is not defined? Where should I define the "lanes_points" in code?
The text was updated successfully, but these errors were encountered:
Hello, thanks for the code. I'm running "imageLaneDetection.py" with culan tflite model and change model_type value in imageLaneDetection.py like:
then, i got these on terminal:
is the error message means the "lanes_points" variable in ultrafastLaneDetector.py is not defined? Where should I define the "lanes_points" in code?
The text was updated successfully, but these errors were encountered: