Skip to content

Aaryan-Bhardwaj/AI_Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI_Tools

Just a collection of AI based projects I'm working on in my free time.

1. Quote Wallpaper Generator

The Quote Wallpaper Generator is a Python application that allows you to create custom quote wallpapers. It provides a graphical user interface (GUI) for selecting various options such as language, category, art style, export formats, and API key. The generated wallpapers can be customized according to your preferences and can be saved in different formats.

Features

  • Select language: Choose the language for the quotes (English or Hindi).
  • Choose category: Select the category of quotes you want to generate wallpapers for.
  • Choose art style: Specify the art style for the wallpapers (e.g., abstract, anime, realistic).
  • Custom vibe: Add an optional vibe to further personalize the wallpapers.
  • Export formats: Choose the desired export formats, including square, padded, horizontal, vertical, with or without captions.
  • API key: Enter your OpenAI API key to access the OpenAI models for extracting features from quote and generating images for wallpapers.

Prerequisites

  • Python 3.x
  • Dependencies: customtkinter, tkinter (built-in)

Installation

  1. Clone the repository or download the project files to your local machine.
  2. Install the required dependencies by running the following command:
pip install customtkinter

Usage

  1. Open the terminal or command prompt and navigate to the project directory.
  2. Run the following command to start the Quote Wallpaper Generator:
python WallpaperGenerator.py
  1. The GUI application will open, allowing you to select the desired options for generating wallpapers.
  2. Choose the language, category, art style, and other options according to your preferences.
  3. Click the "Generate" button to generate the quote wallpapers. Be patient, it can take up to 1.5 minutes to generate all wallpapers.
  4. The wallpapers will be saved in the specified export formats and can be accessed from the output folder.

File Descriptions

  • WallpaperGenerator.py: The main script that launches the Quote Wallpaper Generator application. It contains the GUI implementation using the customtkinter library and handles user interactions.
  • QuoteWallpaper.py: A module that provides the functionality for generating quote wallpapers. It includes the GenerateWallpaper function, which utilizes the selected options and the OpenAI GPT-3 model to create the wallpapers.

Contributing

Contributions to the Quote Wallpaper Generator project are welcome! If you encounter any issues, have suggestions for improvements, or would like to add new features, please feel free to open an issue or submit a pull request.

Acknowledgments

  • The Quote Wallpaper Generator utilizes the OpenAI DALL-E and GPT-3 models for extracting features from quote and generating images for wallpapers. Special thanks to the OpenAI team for their incredible work.

2. Image Editor

The AI Image Editor is a Python-based application that utilizes OpenAI's Dall-E model for image editing. With this tool, you can make creative and unique edits to your images by providing prompts to the AI model.

Features

  • Utilizes OpenAI's Dall-E model for image editing
  • Allows you to open an image from your computer
  • Provides a user-friendly interface for marking regions to be edited
  • Creates a mask based on the selected region
  • Edits the image based on a prompt provided by the user
  • Saves the edited image for further use

Prerequisites

  • Python 3.x installed
  • OpenAI Python library installed
  • An OpenAI API key

Installation

  1. Clone the repository to your local machine.
  2. Install the required dependencies by running the following command:
    pip install -r requirements.txt
    

Usage

  1. Run the Python file 'ImageEditor.py' using the following command:

    python ImageEditor.py
    
  2. When the GUI is running, click the 'Open Image' button to select an image from your computer.

  3. Draw a rectangle on the image to mark the region you want to edit.

  4. Click the 'Create Mask' button to generate a mask based on the selected region.

  5. Enter a prompt describing the desired edits for the whole image in the prompt dialog box.

  6. Click the 'Edit Image' button to initiate the image editing process. Please note that it may take a couple of minutes to complete.

  7. Once the editing process is finished, the edited image will be displayed on the canvas, and a message box will indicate that the image has been saved.

Future Works

In the future, we plan to enhance the AI Image Editor with the following features and improvements:

  1. Support for Non-Square Images: Currently, the code only works with square images. We aim to extend the functionality to handle images of various aspect ratios, allowing users to edit images of any dimensions.

  2. Context-Based Editing: We intend to incorporate context-based editing, where the bounding area for the edit is selected based on the user's prompt and the objects present in the image. This enhancement will provide more precise and targeted editing options, resulting in more accurate and contextually appropriate image modifications.

  3. Improved User Interface: We are dedicated to enhancing the user experience by refining the application's interface. This includes providing more intuitive controls, improving the responsiveness of the GUI, and incorporating additional features that simplify the editing process.

We are excited about the future development of the AI Image Editor and welcome contributions from the open-source community to help us achieve these goals. Stay tuned for updates and improvements!

File Description

  • ImageEditor.py: The main Python file that contains the code for the AI Image Editor application.

Contributions

Contributions to the AI Image Editor project are welcome. If you would like to contribute, please follow the standard guidelines for pull requests.

Acknowledgment

The AI Image Editor project utilizes OpenAI's Dall-E model for image editing. We would like to express our gratitude to OpenAI for their groundbreaking work and for providing the tools and resources to make this project possible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages