pub struct MaskPrediction {
pub masks: Vec<f32>,
pub iou: Vec<f32>,
pub n_mask: usize,
pub height: usize,
pub width: usize,
}Expand description
Predicted masks plus their IoU quality scores.
Fields§
§masks: Vec<f32>Masks: flat [n_mask · (2·grid) · (2·grid)].
iou: Vec<f32>Per-mask predicted IoU scores: [n_mask].
n_mask: usizeNumber of masks.
height: usizeMask spatial height (= 2 · grid).
width: usizeMask spatial width (= 2 · grid).
Trait Implementations§
Source§impl Clone for MaskPrediction
impl Clone for MaskPrediction
Source§fn clone(&self) -> MaskPrediction
fn clone(&self) -> MaskPrediction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MaskPrediction
impl RefUnwindSafe for MaskPrediction
impl Send for MaskPrediction
impl Sync for MaskPrediction
impl Unpin for MaskPrediction
impl UnsafeUnpin for MaskPrediction
impl UnwindSafe for MaskPrediction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more