frigate: Coral USB not detected during boot of PI4 (0.80/Home Assistant) - requires manual restart of Frigate
I’m running HASSOS (x64) on PI4 booting from SSD. Frigate Beta 0.8
Coral config:
detectors:
coral:
type: edgetpu
device: usb
When I reboot HASSOS, the coral device is not detected:
* Starting nginx nginx
...done.
Matplotlib is building the font cache; this may take a moment.
frigate.app INFO : Creating directory: /tmp/cache
frigate.app INFO : Camera processor started for Voordeur: 37
detector.coral INFO : Starting detection process: 35
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.app INFO : Capture process started for Voordeur: 39
ffmpeg.Voordeur.clips ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.Voordeur.detect ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5583d2ec10] moov atom not found
/media/frigate/recordings/Voordeur-20201215093539.mp4: Invalid data found when processing input
frigate.record INFO : bad file: Voordeur-20201215093539.mp4
frigate.edgetpu INFO : No EdgeTPU detected. Falling back to CPU.
Just restarting frigate will solve the problem:
* Starting nginx nginx
...done.
frigate.app INFO : Creating directory: /tmp/cache
detector.coral INFO : Starting detection process: 36
frigate.app INFO : Camera processor started for Voordeur: 39
frigate.edgetpu INFO : Attempting to load TPU as usb
frigate.edgetpu INFO : TPU found
frigate.app INFO : Capture process started for Voordeur: 41
ffmpeg.Voordeur.clips ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.Voordeur.detect ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b10edc10] moov atom not found
/media/frigate/recordings/Voordeur-20201215094501.mp4: Invalid data found when processing input
frigate.record INFO : bad file: Voordeur-20201215094501.mp4
Not sure if it is possible to do some retries when a previous run instance was using a coral device
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- don't fallback to the CPU fixes #381 — committed to blakeblackshear/frigate by blakeblackshear 3 years ago
- don't fallback to the CPU fixes #381 — committed to blakeblackshear/frigate by blakeblackshear 3 years ago
- Update tutorials.rst (#381) — committed to luoj1/frigate by jarulraj 2 years ago
Simple enough. I can add a fallback_to_cpu option that defaults to true if you dont have anything defined and defaults to false if you have the edge tpu defined.