TrueNAS Scale - Coral USB Accelerator with the Frigate app

Hello everyone,

I’m currently running the latest version of TrueNAS Scale on my Mini XL+. I’d like to integrate my Coral USB Accelerator with the Frigate app but it seems the USB isn’t recognized by default. Could anyone guide me on how to configure this setup? Thanks in advance for your help!

1 Like

This is what my apps dashboard looks like - not much CPU demand etc. by Frigate

Here’s the frigate app “home” page, complete with the port mappings I use:

Here’s the first part of the page you get when you press the “edit” button:

and the remainder:

I didn’t do anything clever and I am not an expert so if there’s anything you don’t understand, I might not be able to help (but I can try!).

When Frigate runs, the Coral USB dongle (mine’s plugged into a USB 3.0 port which is what’s recommended) has a lit white LED on it to show it’s working and the Frigate dashboard shows the inference speed of a few ms (9 ms in my case):

2 Likes

Thanks for details, Silly mistake I did not enabled the detectors in frigate config,

Screenshot 2024-07-30 at 1.01.27 PM

1 Like

Thank you for pointing this out.

For anyone new to Frigate, in addition to passing the Coral USB device to the app, you need to enable it in your Frigate configuration with text such as:

detectors:
  coral:
    type: edgetpu
    device: usb
1 Like

Man, I can’t figure out what’s going with the config but a working Frigate has somehow stopped with the no edgetpu found error. I’ve reinstalled the app several times, mount USB is checked, deterctorss coral type and device is in the config file. I’m on Electric Eel, error started on Cobia, upgraded, now on EE and no go.

Coral’s white LED is on

Have you by chance tried rebooting? I know it’s not an elegant solution. But I had a similar problem with my Frigate + Coral USB running under Electric Eel (beta). In my case, I had just moved the Coral to a different USB port - that’s when it started acting up. Even after moving it back to the original port, or yet a third port, I couldn’t get it to work again. I left it attached to that third port, rebooted, and it’s worked fine ever since.

Presumably there’s a less invasive way to reset the USB bus, but I don’t know what that is.

I got it to work. I had to check the box for non-Nvidia GPu passthrough