Crates.io | purpur |
lib.rs | purpur |
version | 0.1.0 |
source | src |
created_at | 2022-07-17 09:24:17.081765 |
updated_at | 2022-07-17 09:24:17.081765 |
description | A data loading and image augmentation library. |
homepage | |
repository | https://github.com/elftausend/purpur |
max_upload_size | |
id | 627143 |
size | 18,811 |
Library for loading pictures and csv files. It supports some sort of "Transforms" (torchvision)
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();