Git Product home page Git Product logo

aditya26062003 / sacred-backbench-ai-creations Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.89 MB

Generate stunning images from text prompts using Stable Diffusion XL with custom LoRA weights. This project features an interactive Gradio interface for fine-tuning parameters like inference steps, guidance scale, and image dimensions. Requires a CUDA-compatible GPU for efficient execution.

License: MIT License

Python 100.00%
ai ai-creation gradio-interface image-creation stable-diffusion-xl

sacred-backbench-ai-creations's Introduction

Enhanced Stable Diffusion XL Image Generator

This project provides an interactive user interface to generate images using the Stable Diffusion XL model with custom LoRA weights. The interface is built using Gradio, allowing users to input prompts and adjust various parameters to control the image generation process.

AN ANIME BOY

Features

  • Prompt Input: Enter text prompts to generate images.
  • Inference Steps: Adjust the number of inference steps for image generation.
  • Guidance Scale: Control the strength of the guidance.
  • Image Dimensions: Set the width and height of the generated images.
  • Real-time Updates: Live mode for immediate feedback.

Prerequisites

  • CUDA: A CUDA-compatible GPU is required for running this project efficiently. Ensure that you have the necessary CUDA drivers and libraries installed.

Installation

To run this project, you need to install the required libraries. You can do this using the following commands:

pip install diffusers transformers torch accelerate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install peft --upgrade
pip install gradio

Usage

  1. Clone the Repository:
git clone https://github.com/EchoSingh/Sacred-Backbench-AI-Creations.git
cd Sacred-Backbench-AI-Creations
  1. Run the Script:
python app.py
  1. Access the Gradio Interface:

After running the script, you will see a local URL in the terminal. Open this URL in your browser to access the interactive interface.

Example

Here’s how the interface looks: A BEAUTIFUL GIRL

Parameters

  1. Prompt: Enter your text prompt here.
  2. Inference Steps: Number of steps to run the diffusion process (1-100).
  3. Guidance Scale: Scale for classifier-free guidance (1.0-20.0).
  4. Width: Width of the generated image (256-1024).
  5. Height: Height of the generated image (256-1024).

License

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

Acknowledgments

  1. Diffusers Library
  2. Gradio Library
  3. Stable Diffusion

sacred-backbench-ai-creations's People

Contributors

echosingh avatar

Stargazers

0xsharad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.