Move the yolo shared bits to a common place. (#548)

* Move the yolo shared bits to a common place.

* Share more code.

* Configurable thresholds.
This commit is contained in:
Laurent Mazare
2023-08-22 13:03:07 +01:00
committed by GitHub
parent 20ce3e9f39
commit bb69d89e28
6 changed files with 113 additions and 181 deletions

View File

@ -1,3 +1,6 @@
pub mod coco_classes;
pub mod object_detection;
use candle::{Device, Result, Tensor};
pub fn device(cpu: bool) -> Result<Device> {