purpur

Crates.iopurpur
lib.rspurpur
version0.1.0
sourcesrc
created_at2022-07-17 09:24:17.081765
updated_at2022-07-17 09:24:17.081765
descriptionA data loading and image augmentation library.
homepage
repositoryhttps://github.com/elftausend/purpur
max_upload_size
id627143
size18,811
(elftausend)

documentation

README

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();
Commit count: 25

cargo fmt