Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix edgetpu device type "None" not working #7097

Merged

Conversation

Links2004
Copy link
Contributor

fix edgetpu device type "None" (auto)

from docu:
https://docs.frigate.video/configuration/detectors#edge-tpu-detector

The EdgeTPU device can be specified using the "device" attribute 
according to the Documentation for the TensorFlow Lite Python API.
If not set, the delegate will use the first device it finds.

but the code currently forces the device type to usb, which will not detect pci devices.
this is a problem in hybrid use cases where sometimes a pci and sometimes a USB device is available.

based on pycoral:
https://github.com/google-coral/pycoral/blob/ae743b0b234d66d784826ccfbb4607a69dc1a2a8/pycoral/utils/edgetpu.py#L87C32-L87C32

@netlify
Copy link

netlify bot commented Jul 8, 2023

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit e4c39e0
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/64a9c007f7b8320008d6e9a8

@Links2004 Links2004 requested a review from NickM-27 July 8, 2023 20:01
@blakeblackshear blakeblackshear merged commit 5e772c3 into blakeblackshear:dev Jul 8, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants