Giter Site home page Giter Site logo

4bdul4ziz / ezstablediffusion Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 6 KB

A package to effortlessly implement Stable Diffusion running locally on your pc/mac using pre trained huggingface models.

Python 100.00%
ai huggingface-transformers ml stable-diffusion

ezstablediffusion's Introduction

ezStableDiffusion

ezStableDiffusion is a simple graphical user interface (GUI) built with tkinter and customtkinter, which allows users to easily generate images using the StableDiffusion pipeline.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python 3.6 or later
  • tkinter and customtkinter (can be installed via pip)
  • Pillow (can be installed via pip)
  • torch and torchvision (can be installed via pip)
  • authtoken (should be provided by the developer)
  • diffusers (should be provided by the developer)

Installation

  1. Clone the repository.
  2. Install the prerequisites via pip by running pip install -r requirements.txt
  3. Set the environment variable cache_dir to the directory where the models will be stored.
  4. Run the script main.py

Usage

  1. Run the script main.py
  2. Type in the prompt the text you want to use as guidance for the image generation.
  3. Click on the "Generate" button.
  4. The generated image will be displayed and also saved as "generated.png" in the working directory.

Built With

  • tkinter - Python's standard GUI package
  • customtkinter - A wrapper for tkinter to make it easier to use
  • Pillow - A python imaging library
  • torch - PyTorch is an open source machine learning library
  • diffusers - A library for image generation

Authors

Acknowledgments

ezstablediffusion's People

Contributors

4bdul4ziz avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  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.