Giter Club home page Giter Club logo

ai_image_env's Introduction

ai_image_env

A browser interface based on Gradio library for Stable Diffusion, input from .env files for an easy image creation.

Installation:

  • METHOD 1:
  1. Install Python 3.10.6, checking "Add Python to PATH".
  2. Install git.
  3. On terminal:
git clone https://github.com/shiroppo/ai_image_env
cd ai_image_env
py -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
  • and then:
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
  • METHOD 2:
  1. Install Python 3.10.6, checking "Add Python to PATH".
  2. Install git.
  3. Download and run app_install.bat in the directory of your choice.

Run

  • Double click on app_gradio.bat on ai_image_env directory
  • the interface is now open on the default browser, than select the .env/.yaml file that you prefer(in ./env/ directory)
  • select the cycles(how many images you want)
  • click "Submit"
  • you can find the output in the ./image/today_date/ directory

  • Download from hugginface or any similar website every checkpoint sd xl that you use and put them into ./models/Stable-diffusion/
  • Download from hugginface or any similar website every checkpoint sd 1.5/2.0/2.1 that you use and put them into ./models/Stable-diffusion/
  • Download from hugginface or any similar website every LoRA sd xl that you use and put them into ./models/Lora/
  • Download from hugginface or any similar website every LoRA sd 1.5/2.0/2.1 that you use and put them into ./models/Lora/
  • Download from hugginface or any similar website every VAE that you use and put them into ./models/VAE/
  • Download from hugginface or any similar website every negative embeddings that you use and put them into ./embeddings/

Compel

In the prompt/negative prompt you can use the "prompt weighting":

- Example: "a grey cat++ playing with a ball----"
  • in this example the cat(+) is MORE important that the ball(-)

Files input compatibility:

  • .env
  • .yaml
  • .png(created with ai_image_env)

Wildcards

Write __name__ in your prompt to get a random line from a file named name.txt in the ./wildcards directory.

Turbo Mode(images ready in few seconds):

(less quality, but more speed)

In the selected .env:

Versions

  • v1.0: First Version
  • v1.1: Added "Prompt" textbox, if empty the prompt is obtained from the selected *.env file
  • v1.2: Added "Turbo Mode"

Support:

ai_image_env's People

Contributors

another-ai avatar

Stargazers

 avatar

Watchers

 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.