pub struct SupervisedImageManifestConfig { /* private fields */ }Expand description
Configuration for parsing/loading supervised image-manifest CSV datasets.
Expected row format:
image_path,target_0,target_1,...
Implementations§
Source§impl SupervisedImageManifestConfig
impl SupervisedImageManifestConfig
pub fn new( target_shape: Vec<usize>, output_height: usize, output_width: usize, ) -> Result<Self, ModelError>
pub fn with_image_root<P: Into<PathBuf>>(self, image_root: P) -> Self
pub fn with_delimiter(self, delimiter: char) -> Result<Self, ModelError>
pub fn with_header(self, has_header: bool) -> Self
pub fn target_shape(&self) -> &[usize]
pub fn output_height(&self) -> usize
pub fn output_width(&self) -> usize
pub fn image_root(&self) -> &Path
pub fn delimiter(&self) -> char
pub fn has_header(&self) -> bool
Trait Implementations§
Source§impl Clone for SupervisedImageManifestConfig
impl Clone for SupervisedImageManifestConfig
Source§fn clone(&self) -> SupervisedImageManifestConfig
fn clone(&self) -> SupervisedImageManifestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for SupervisedImageManifestConfig
impl PartialEq for SupervisedImageManifestConfig
Source§fn eq(&self, other: &SupervisedImageManifestConfig) -> bool
fn eq(&self, other: &SupervisedImageManifestConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SupervisedImageManifestConfig
Auto Trait Implementations§
impl Freeze for SupervisedImageManifestConfig
impl RefUnwindSafe for SupervisedImageManifestConfig
impl Send for SupervisedImageManifestConfig
impl Sync for SupervisedImageManifestConfig
impl Unpin for SupervisedImageManifestConfig
impl UnsafeUnpin for SupervisedImageManifestConfig
impl UnwindSafe for SupervisedImageManifestConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more