mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
More support for pose estimation in yolo-v8. (#599)
* More support for pose estimation in yolo-v8. * Support both object detection and pose-estimation in the yolo-v8 example.
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
/// A bounding box around an object.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Bbox {
|
||||
pub xmin: f32,
|
||||
pub ymin: f32,
|
||||
pub xmax: f32,
|
||||
pub ymax: f32,
|
||||
pub confidence: f32,
|
||||
pub keypoints: Vec<(f32, f32, f32)>,
|
||||
}
|
||||
|
||||
/// Intersection over union of two bounding boxes.
|
||||
|
Reference in New Issue
Block a user