1 unstable release
0.1.0 | Jul 17, 2022 |
---|
#1016 in Machine learning
Used in gradients
17KB
374 lines
purpur
Library for loading pictures and csv files. It supports some sort of "Transforms" (torchvision)
Example
use purpur::{Transforms, Apply, ImageReturn};
let mut ir = ImageReturn::default();
let mut transforms = Transforms::new(vec![
Apply::CenterCrop(120, 120),
Apply::GetImgRet(&mut ir),
]);
//For instance: A dataset directory contains 3 directories with pictures of dogs, cats and birds.
transforms.apply("../dataset").unwrap();
Dependencies
~5–12MB
~111K SLoC