Skip to content

Easily create AI-generated images using simple Python scripts. Run models locally or via cloud services with up to 100 free images per month. Leverage Google Colab for faster processing with free GPUs. Perfect for beginners and experienced users alike—explore AI image creation with minimal setup!

Notifications You must be signed in to change notification settings

eduhubai/AI-Image-Creation-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Here's a clean, regular README.md format for your project:

AI-Image-Creation-Toolkit

Welcome to the AI-Image-Creation-Toolkit! This repository provides all the tools you need to generate AI images on your computer or using cloud-based services. Whether you're new to AI or an experienced user, this toolkit will help you create stunning images with simple Python scripts.

Features

  • Local Image Generation: Generate AI images directly on your computer at no cost.
  • Cloud-Based Image Generation: Leverage Hugging Face's API to generate images in the cloud, with up to 100 free images per month.
  • Google Colab Integration: Speed up image generation by running scripts on Google Colab using free GPUs.

Getting Started

Prerequisites

  • Python 3.x installed on your computer.
  • An IDE like VSCode or PyCharm (optional but recommended).
  • A Hugging Face account for cloud-based image generation.

Installation

  1. Clone the Repository

    Clone the repository to your local machine:

    git clone https://github.com/your-username/AI-Image-Creation-Toolkit.git
    cd AI-Image-Creation-Toolkit
  2. Install the Required Libraries

    If you're running the scripts locally, install the necessary Python libraries:

    pip install -r requirements.txt

    This command will install the following libraries:

    • diffusers: A library for creating and working with diffusion models used in image generation.
    • transformers: Hugging Face’s library for handling pre-trained models and running inference.
    • requests: A simple library for making HTTP requests, useful for accessing Hugging Face’s API.
    • Pillow: A Python Imaging Library (PIL) fork, useful for image processing tasks like saving and displaying images.

Usage

1. Local Image Generation

To generate images locally on your computer:

  1. Open the local.py script in your IDE.
  2. Customize the prompt variable with your desired image description.
  3. Run the script.

The generated image will be saved as output.png in the project directory.

2. Cloud-Based Image Generation

To generate images using Hugging Face’s cloud API:

  1. Open the cloud.py script in your IDE.
  2. Replace your_huggingface_api_token with your Hugging Face API key.
  3. Customize the prompt variable with your desired image description.
  4. Run the script.

The generated image will be saved as output.png in the project directory.

3. Using Google Colab

If you want to leverage Google Colab’s free GPUs:

  1. Upload the local.py or cloud.py script to a new Google Colab notebook.

  2. Install the necessary libraries in the Colab environment:

    !pip install diffusers transformers requests pillow
  3. Run the script to generate your images faster using Colab’s GPU resources.

Video Tutorial

Watch our step-by-step video tutorial to see these methods in action:

AI-Image-Creation-Toolkit Video Tutorial

(Click the image above to watch the video on YouTube)

Contributing

Contributions are welcome! Feel free to open issues, suggest features, or submit pull requests to improve this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Hugging Face: For providing the API used in cloud-based image generation.
  • Diffusers Library: For the tools used to generate images locally.

You can use this Markdown text as your README.md file. Just remember to replace your-username and VIDEO_ID_HERE with your specific details.

About

Easily create AI-generated images using simple Python scripts. Run models locally or via cloud services with up to 100 free images per month. Leverage Google Colab for faster processing with free GPUs. Perfect for beginners and experienced users alike—explore AI image creation with minimal setup!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages