Skip to main content

imgo

Process, Augment, and Balance Image Data

PyPI - Version PyPI - Python Version License: MIT

💡 What is it?

This library is designed to facilitate the preprocessing phase of image classification projects in order to get into the fun part: training the models!

Features:

Imgo is composed of two modules: uptools and augtools.

Uptools helps to streamline various image data preprocessing tasks, such as:

  • Reading images from a local disk
  • Rescaling images
  • Normalizing and standardizing pixel values
  • Converting image datasets into numpy-arrays
  • One-hot-encoding label data
  • Splitting image datasets into training, validation, and testing subsets
  • Merging data subsets into a single dataset
  • Saving numpy-arrays as images in class subdirectories

imgo_up_demo

Augtools allows the user to quickly and efficiently apply augmentation to image data. With Augtools, users can perform the following augmentation tasks using very few lines of code:

  • Apply a powerful collection of transformation and corruption functions
  • Augment images saved on a local disk
  • Save augmented images in class subdirectories
  • Augment entire image datasets
  • Augment training data in place in preparation for machine learning projects
  • Rebalance class sizes by generating new training images

imgo_aug_demo

🛠️ Setup

Install it from PyPI by running pip install imgo.

Dependencies

The code was written with Python 3.6, and it is recommended to run it in a virtual environment. All the required libraries are listed in the requirements.txt file in this repo.

🚀 Execution

Once the package has been installed, it is simply a case of experimenting with the various classes and functions. For a quickstart, please see the demo.

📝 Documentation

Documentation is currently available in the form of docstrings.

⚖️ License

The project is licensed under the MIT license.

Acknowledgements

Some of the augtools library is built as a wrapper around Imgaug, a powerful image augmentation library. For more information, please see https://imgaug.readthedocs.io/en/latest/.

Release files for imgo 2.5.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imgo 2.5.9
File Size Uploaded
imgo-2.5.9.tar.gz 25.9 kB Details

Release files / imgo-2.5.9.tar.gz

Download URL imgo-2.5.9.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d0bb4c6dc68edeb4fb1c6984ac3e72c0513ae95d7aa0c1550ea191b6b8fd8e57
BLAKE2b-256 checksum
How to use checksums
b419ba0601abfff06cd65e2f7a37293a3912ab522b8c52cbd584d3bf7965adf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release history Release notifications | RSS feed

This release

2.5.9 This release

1 release file

2.5.8

1 release file

2.5.7

1 release file

2.5.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page