Skip to content

recoilme/100lineSDXL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:

The quickest and simplest method to taste the essence of Stable Diffusion XL. Conjured with a mere 100 lines of code and three magic buttons, this program summons models with an arcane auto-download feature. A five-step incantation leads to a spectacle of generation, supported on various mystical artifacts known as GPU, CPU, and MPS.

Speed:

  • GPU renders the abstract into reality in a blink of an eye - a mere second.
  • MPS, the middle child, takes a brief few seconds to gather its thoughts.
  • CPU, the old sage, contemplates and formulates the visual enlightenment over dozens of seconds.

Installation:

Invoke the command:

git clone https://github.com/recoilme/100lineSDXL
cd 100lineSDXL
pip3 install torch torchvision torchaudio --upgrade
pip3 install -r requirements.txt
pip3 install diffusers --upgrade

Ponder upon it (for a considerable duration).

Commencement:

Utter the incantation:

python3 app.py

Bestow patience upon it (the inaugural ritual takes its sweet, sweet time, yes, once more).

Interface:

Open link http://0.0.0.0:7861/ behold the mystical canvas as this: 1.jpg

About

Inference stable diffusion model in 100 lines of code. Simple, fast with cpu, gpu and mps (mac m1/2/3) support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages