Open bryanhughes opened 9 months ago
Try removing json
from that line in the docker file. It should be part of the standard library, so i’m not sure why it's in there. Your host OS shouldn’t make a difference though.
Thank you! Also, thank you for making your work available. I get docker to build and run, but then throws the following:
root@dd52abc5ae75:/yolo# python3 detect.py -m yolov5s-int8-224_edgetpu.tflite --bench_speed
INFO:EdgeTPUModel:Confidence threshold: 0.25
INFO:EdgeTPUModel:IOU threshold: 0.45
INFO:EdgeTPUModel:Loaded 80 classes
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
delegate = Delegate(library, options)
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "detect.py", line 47, in <module>
model = EdgeTPUModel(args.model, args.names, conf_thresh=args.conf_thresh, iou_thresh=args.iou_thresh)
File "/yolo/edgetpumodel.py", line 56, in __init__
self.make_interpreter()
File "/yolo/edgetpumodel.py", line 81, in make_interpreter
self.interpreter = etpu.make_interpreter(self.model_file)
File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 87, in make_interpreter
delegates = [load_edgetpu_delegate({'device': device} if device else {})]
File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 52, in load_edgetpu_delegate
return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1
root@dd52abc5ae75:/yolo#
I am coming to realize what a piece of garbage this device is and Google's support of it. Sad because it has so much potential.
How are you running Docker? Can you see the device from inside the container? I'd guess this is a permission issue, but not sure.
I have a fresh install of Ubuntu 22.04. When I try to do the docker build as in the instructions I get the following: