Skip to content

Omunkhuush/stable-diffusion-v1.4-API-with-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable-Diffusion-v1.4-API-with-Flask

Description

This project generates what people want to see using a stable diffusion model and can send it to their email.

Installation

1. Download repository

git clone https://github.com/Omunkhuush/stable-diffusion-v1.4-API-with-flask.git

2. Install the Pytorch version that matches your Cuda version from Pytorch all release.

3. Install requirements

cd stable-diffusion-v1.4-API-with-flask
pip install -r requirement.txt

Get access token from Hugging face

  1. Sign up and Sign in to Hugging face
  2. Click to Profile --> Settings --> Access Tokens
  3. click to New token
    • Give it the name you want
    • set role to write
    • Copy the generated access token

Get App password from Google

  1. Clict to Manage your Google Account on the browser.
  2. Click to Settings
  3. Turn on 2-Step Verification
  4. Scroll down and click to App passwords
    • set Select app to other (custom name)
    • Give it the name you want
    • Copy the generated App password

Edit .env file.

After obtaining the access tokens, make the necessary changes to the env file.

Run WebApp

python App.py

runStable runStable2

Test

stableDiffusion_720.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors