[Support]: Frigate+ model not working and throws Edge TPU error #10688
-
Describe the problem you are havingHi, I have had a custom model generated, and want to use it. Setup before adding model is that I am running Frigate with default model, Edge TPU connected to my mini PC over USB and no issues in logs, all is working fine. Once I add the code for my custom model, from the line for Edge Tpu, save the config and restart I am getting below error. Only difference is that I added below line, to current config file. Of course I substituted the default value with that from my model: Version0.12.1-367D724 Frigate config filedetectors:
coral:
type: edgetpu
device: usb
record:
enabled: True
retain:
days: 1
mode: motion
events:
retain:
default: 7
mode: active_objects
detect:
stationary:
interval: 0
threshold: 500
objects:
track:
- person
- cat
- dog
- car
- giraffe
database:
path: /config/frigate.db
model:
path: plus://e63b7345cc83a84ed79dedfc99c16616 //this value is substituted with my model id Relevant log output2024-03-26 17:18:32.618959892 [2024-03-26 17:18:32] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-03-26 17:18:32.618962353 [2024-03-26 17:18:32] frigate.detectors.plugins.edgetpu_tfl ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-03-26 17:18:32.622346920 Process detector:coral:
2024-03-26 17:18:32.622352187 Traceback (most recent call last):
2024-03-26 17:18:32.622353481 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-03-26 17:18:32.622354465 self.run()
2024-03-26 17:18:32.622355555 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-03-26 17:18:32.622356528 self._target(*self._args, **self._kwargs)
2024-03-26 17:18:32.622357639 File "/opt/frigate/frigate/object_detection.py", line 98, in run_detector
2024-03-26 17:18:32.622358761 object_detector = LocalObjectDetector(detector_config=detector_config)
2024-03-26 17:18:32.622359798 File "/opt/frigate/frigate/object_detection.py", line 52, in __init__
2024-03-26 17:18:32.622360782 self.detect_api = create_detector(detector_config)
2024-03-26 17:18:32.622361907 File "/opt/frigate/frigate/detectors/__init__.py", line 24, in create_detector
2024-03-26 17:18:32.622362877 return api(detector_config)
2024-03-26 17:18:32.622364043 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 39, in __init__
2024-03-26 17:18:32.622365073 self.interpreter = Interpreter(
2024-03-26 17:18:32.622366248 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 348, in __init__
2024-03-26 17:18:32.622367211 _interpreter_wrapper.CreateWrapperFromFile(
2024-03-26 17:18:32.622368294 ValueError: Could not open 'plus://2ac78675f78656ccccf********'. //hashed model id here FFprobe output from your cameraNot relevant Frigate statsNo response Operating systemHassOS Install methodHassOS Addon Coral versionUSB Network connectionWired Camera make and modelHikvision Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
you are running 0.12, this feature is available in 0.13 |
Beta Was this translation helpful? Give feedback.
-
I have this exact same issue and am on 0.13....help |
Beta Was this translation helpful? Give feedback.
-
just to reiterate, coral and frigate work fine when i take out the custom model edgetpu model ID cpu model ID works but my CPU load is crazy high...cannot get the edge tpu model ID to work.. |
Beta Was this translation helpful? Give feedback.
you are running 0.12, this feature is available in 0.13