mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 19:58:35 +00:00
Move the yolo model bits in a separate file. (#602)
* Move the yolo model bits in a separate file. * Improve the drawing. * Bugfix.
This commit is contained in:
@ -6,7 +6,14 @@ pub struct Bbox {
|
||||
pub xmax: f32,
|
||||
pub ymax: f32,
|
||||
pub confidence: f32,
|
||||
pub keypoints: Vec<(f32, f32, f32)>,
|
||||
pub keypoints: Vec<KeyPoint>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct KeyPoint {
|
||||
pub x: f32,
|
||||
pub y: f32,
|
||||
pub mask: f32,
|
||||
}
|
||||
|
||||
/// Intersection over union of two bounding boxes.
|
||||
|
Reference in New Issue
Block a user