pub trait DataSet {
    // Required methods
    fn len(&self) -> usize;
    fn get_data(&self) -> (Vec<DynamicImage>, Vec<u32>);
    fn load(&mut self) -> Result<(), Box<dyn Error>>;
}
Expand description

Trait representing a dataset of images and labels for training

Required Methods§

source

fn len(&self) -> usize

Returns the number of images in the dataset

source

fn get_data(&self) -> (Vec<DynamicImage>, Vec<u32>)

Returns the images and labels for training

source

fn load(&mut self) -> Result<(), Box<dyn Error>>

Loads the dataset

Implementors§