#vec #csv #image #deep-learning #data-augmentation

purpur

A data loading and image augmentation library

1 unstable release

0.1.0 Jul 17, 2022

#833 in Machine learning

23 downloads per month
Used in gradients

MIT license

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
~113K SLoC