ibaiGorordo / TfLite-Ultra-Fast-Lane-Detection-Inference

Example scripts for the detection of lanes using the ultra fast lane detection model in Tensorflow Lite.
MIT License
21 stars 2 forks source link

Issue when running example as suggested #5

Open Ben-schlch opened 8 months ago

Ben-schlch commented 8 months ago

Running interference on single picture with model from repository results in following error:

python imageLaneDetection.py

Traceback (most recent call last): File "imageLaneDetection.py", line 20, in output_img = lane_detector.detect_lanes(img) File "/home/rollerz/Documents/Vorgänger/TfLite-Ultra-Fast-Lane-Detection-Inference/ultrafastLaneDetector/ultrafastLaneDetector.py", line 79, in detect_lanes self.lanes_points, self.lanes_detected = self.process_output(output, self.cfg) File "/home/rollerz/Documents/Vorgänger/TfLite-Ultra-Fast-Lane-Detection-Inference/ultrafastLaneDetector/ultrafastLaneDetector.py", line 163, in process_output return np.array(lane_points_mat), np.array(lanes_detected) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.

Ben-schlch commented 8 months ago

Numpy version issue:

numpy==1.23.5 works fine. Please adjust requirements.txt