CoolFace
Apppublic

Cosmic-Ali/augmented_img_generator

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Augmented Image Generator

๐Ÿ’ป A user-friendly tool to generate synthetic image data by applying various augmentations to existing images. Built with Streamlit, this application provides an intuitive interface for augmenting images, aiding in the expansion of datasets for machine learning and computer vision tasks.

Note: This is a beta version.

Features

  • โ€”Streamlit Interface: Interactive web application for seamless user experience.
  • โ€”Image Augmentation: Apply a variety of transformations to images to create augmented datasets.
  • โ€”Customizable Parameters: Adjust augmentation settings to suit specific needs.
  • โ€”Batch Processing: Augment multiple images simultaneously.

Installation (Local)

  1. 1.Clone the Repository
bash
   git clone https://github.com/Cosmic-Ali/augmented_image_generator.git
   cd augmented_image_generator
  1. 1.Create a Virtual Environment (Optional but Recommended)
bash
   python -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. 1.Install Dependencies
bash
   pip install -r requirements.txt
  1. 1.Run Locally
bash
   streamlit run app.py

File Structure

plaintext
augmented_image_generator/
โ”œโ”€โ”€ .streamlit/             # Streamlit configuration files
โ”œโ”€โ”€ data/                   # Directory to store input images
โ”œโ”€โ”€ app.py                  # Main application script
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ””โ”€โ”€ README.md               # Project documentation

Run on cloud platform

Access the live app at:

๐Ÿ‘‰โ€ฏhttps://huggingface.co/spaces/Cosmic-Ali/augmented\_img\_generator


Usage (Deployed)

  • โ€”Select augmentation options and parameters.
  • โ€”View the augmented images in real-time.
  • โ€”Download the augmented images as needed.

Augmentation Techniques

The application supports a range of augmentation techniques, including but not limited to:

  • โ€”Rotation: Rotate images by a specified degree range.
  • โ€”Flipping: Horizontally or vertically flip images.
  • โ€”Scaling: Zoom in or out of images.
  • โ€”Translation: Shift images along the X and Y axes.
  • โ€”Shearing: Stretch/shear images along the corners.
  • โ€”Cropping: Crop parts of the image.

Note: The exact augmentation options available can be viewed and adjusted within the Streamlit interface.

Future Updates

  • โ€”I plan to add more transformation types (e.g., color jitter, perspective warp).
  • โ€”Refinements to the UI and parameter controls are on the roadmap.
  • โ€”Any breaking changes or new features will be noted here as the project evolves.

License

This project is open for experimentation and improvement. Feel free to explore and modify it for your needs.

Acknowledgments

This tool uses Streamlit to power its interactive UI for image augmentation.