dctian / DeepPiCar

Deep Learning Autonomous Car based on Raspberry Pi, SunFounder PiCar-V Kit, TensorFlow, and Google's EdgeTPU Co-Processor
GNU General Public License v3.0
399 stars 271 forks source link

Segmentation Fault #16

Closed vm1234-code closed 3 years ago

vm1234-code commented 3 years ago

I have downloaded the edge-tpu device using the coral edge tpu website and when I run: python3 code/coco_object_detection.py I receive a segmentation fault

marco2meyer commented 3 years ago

I have the same issue. Here is the final bit of the output of tracing the execution of the command -- unfortunately I cannot make much sense of this. Any pointers?

--- modulename: coco_object_detection, funcname: coco_object_detection.py(28): labels = dict((int(k), v) for k, v in pairs) --- modulename: coco_object_detection, funcname: coco_object_detection.py(27): pairs = (l.strip().split(maxsplit=1) for l in f.readlines()) coco_object_detection.py(31): IM_WIDTH = 640 coco_object_detection.py(32): IM_HEIGHT = 480 coco_object_detection.py(33): camera = cv2.VideoCapture(0) coco_object_detection.py(34): ret = camera.set(3,IM_WIDTH) coco_object_detection.py(35): ret = camera.set(4,IM_HEIGHT) coco_object_detection.py(37): font = cv2.FONT_HERSHEY_SIMPLEX coco_object_detection.py(38): bottomLeftCornerOfText = (10,IM_HEIGHT-10) coco_object_detection.py(39): fontScale = 1 coco_object_detection.py(40): fontColor = (255,255,255) # white coco_object_detection.py(41): boxColor = (0,0,255) # RED? coco_object_detection.py(42): boxLineWidth = 1 coco_object_detection.py(43): lineType = 2 coco_object_detection.py(45): annotate_text = "" coco_object_detection.py(46): annotate_text_time = time.time() coco_object_detection.py(47): time_to_show_prediction = 1.0 # ms coco_object_detection.py(48): min_confidence = 0.20 coco_object_detection.py(51): engine = edgetpu.detection.engine.DetectionEngine(args.model) --- modulename: engine, funcname: init engine.py(69): if device_path: engine.py(72): super().init(model_path) --- modulename: basic_engine, funcname: init basic_engine.py(36): if device_path: basic_engine.py(40): self._engine = BasicEnginePythonWrapper.CreateFromFile(model_path) free(): invalid pointer Aborted