pub struct Preprocess {
pub height: usize,
pub width: usize,
pub rescale: f32,
pub mean: [f32; 3],
pub std: [f32; 3],
}Expand description
预处理参数(preprocessor_config.json)。
Fields§
§height: usize§width: usize§rescale: f32§mean: [f32; 3]§std: [f32; 3]Implementations§
Trait Implementations§
Source§impl Clone for Preprocess
impl Clone for Preprocess
Auto Trait Implementations§
impl Forget for Preprocess
impl Freeze for Preprocess
impl Move for Preprocess
impl RefUnwindSafe for Preprocess
impl Send for Preprocess
impl Sync for Preprocess
impl Unpin for Preprocess
impl UnsafeUnpin for Preprocess
impl UnwindSafe for Preprocess
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