All Projects β†’ liashchynskyi β†’ rudi

liashchynskyi / rudi

Licence: other
Lightweight image converter and dataset augmentor

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to rudi

sic
🦜 Accessible image processing and conversion from the terminal. Front-end for image-rs/image.
Stars: ✭ 96 (+500%)
Mutual labels:  image-converter, convert-images
aart
Convert images and video to ascii art!
Stars: ✭ 18 (+12.5%)
Mutual labels:  convert-images
converjon
An advanced image conversion server and command line tool.
Stars: ✭ 52 (+225%)
Mutual labels:  convert-images
create-optimize-images
♻️ Reusable, scalable, bash scripts to create and optimize images.
Stars: ✭ 39 (+143.75%)
Mutual labels:  convert-images
metalsmith-convert
Convert images with imagemagick (via imagemagick-native).
Stars: ✭ 17 (+6.25%)
Mutual labels:  convert-images
retropixels
A cross platform tool to convert images to c64 format.
Stars: ✭ 78 (+387.5%)
Mutual labels:  convert-images
pyconngavi
Generates Branded Avatars for the PyconNG2017 Event
Stars: ✭ 13 (-18.75%)
Mutual labels:  pil
anonymisation
Anonymization of legal cases (Fr) based on Flair embeddings
Stars: ✭ 85 (+431.25%)
Mutual labels:  dataset-augmentation
Mandelbrot-set-explorer
An interactive Mandelbrot set, made with Python3 and Tkinter
Stars: ✭ 31 (+93.75%)
Mutual labels:  pil
libpillowfight
Small library containing various image processing algorithms (+ Python 3 bindings) that has almost no dependencies -- Moved to Gnome's Gitlab
Stars: ✭ 60 (+275%)
Mutual labels:  pil
svg64
Convert SVG to base64 in Node and the browser
Stars: ✭ 24 (+50%)
Mutual labels:  image-converter
Pillow
The friendly PIL fork (Python Imaging Library)
Stars: ✭ 9,241 (+57656.25%)
Mutual labels:  pil
mosaicshapes
Transform pictures to Chuck Close inspired mosaic art.
Stars: ✭ 18 (+12.5%)
Mutual labels:  pil
lv utils
Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
Stars: ✭ 46 (+187.5%)
Mutual labels:  image-converter
Image-converter
Conversor de imagens
Stars: ✭ 14 (-12.5%)
Mutual labels:  image-converter
image-to-ascii
Script to convert images to ASCII art
Stars: ✭ 31 (+93.75%)
Mutual labels:  convert-images
svg2vector
Online batch converter of SVG images to Android vector drawable XML resource files
Stars: ✭ 39 (+143.75%)
Mutual labels:  convert-images

Rudi

(based on Augmentor an PIL)

If you want to train a CNN, the custom dataset must be a collection of images of the same aspect ratio, extension, etc. This script is gonna do that for you. Rudi is a command line tool for converting and augmenting your dataset of images.

Installation

Install Python3 and then run the following command:

pip install rudi

or clone the repo firs

git clone https://github.com/liashchynskyi/rudi
cd rudi

and run python setup.py install or pip install .

Usage

Imgur

Convert a dataset

For example, you have a basic tree of the root directory (the script will also work if the root containt only images without other dirs).

root    
└───class1
β”‚   β”‚   image_c1.png
β”‚   β”‚   image_c2.png
β”‚   └───subdirectory    
└───class2
    β”‚   image_c1.png
    β”‚   image_c2.png

Just run rudi convert --help Imgur

Let's convert images in current directory to jpg format and set new aspect ratio to 224px.

rudi convert -t jpg --target-size=224 ./

Output images will be saved in output dir of the root.

Dataset augmentation

Command: rudi augment --help Imgur

There are a few supported operations:

  • flip - random image flipping followed by -p option
  • rotate - random image rotation followed by -p,-mlr and -mrr options
  • distortion - random image distortion followed by -p,-mg and -gwh options
  • skew - random image skewing followed by -p option and constant magnitude value of 0.7
  • zoom - random image zooming followed by -p,-minf and -maxf options

Output images will be saved in output dir of the root.

Changelog

  • 1.0.1
    • Fixed problem when converting images. Now if image is placed in subdirectory then that subdir also will be created in output dir.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].