* Adds support for YOLO v9 models running on Google Coral
* fix format by using ruff instead of black
* Remove comment
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* Remove log message
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* revert to hard-coded settings. use ModelTypeEnum directly
* remove log messages. detect invalid output tensor count
* remove 1-tensor processing. add pre_process() function
* check for valid model type
* fix formatting
* remove unused import and variable
* remove tip that indicates other YOLO models may be supported.
---------
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* Add isort and ruff linter
Both linters are pretty common among modern python code bases.
The isort tool provides stable sorting and grouping, as well as pruning
of unused imports.
Ruff is a modern linter, that is very fast due to being written in rust.
It can detect many common issues in a python codebase.
Removes the pylint dev requirement, since ruff replaces it.
* treewide: fix issues detected by ruff
* treewide: fix bare except clauses
* .devcontainer: Set up isort
* treewide: optimize imports
* treewide: apply black
* treewide: make regex patterns raw strings
This is necessary for escape sequences to be properly recognized.
It supports the same entrypoints, given that tflite is a small cut-out
of the big tensorflow picture.
This patch was created for downstream usage in nixpkgs, where we don't
have the tflite python package, but do have the full tensorflow package.