File size: 2,462 Bytes
6d7617e
2e278ad
 
 
 
9ae9087
 
6d7617e
85432e1
0c7fe13
db913db
c1548a1
4bab8a1
0c7fe13
6d7617e
17fa6fa
579e8d0
7517078
 
 
 
 
 
c1548a1
579e8d0
 
 
7517078
 
301d341
7517078
 
 
 
 
301d341
7517078
 
301d341
7517078
 
301d341
7517078
 
301d341
6d7617e
 
7517078
 
cb5daed
 
 
 
 
c348e53
 
 
cb5daed
301d341
 
 
ba33983
301d341
 
 
 
85432e1
 
 
 
 
 
301d341
 
8991603
301d341
5c4e8c1
 
 
 
 
301d341
 
 
 
 
2e278ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
# https://huggingface.co/docs/hub/en/spaces-config-reference
title: Diffusion Zero
short_description: Image generation studio on ZeroGPU
emoji: 🧨
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 4.41.0
python_version: 3.11.9
app_file: app.py
fullWidth: false
pinned: true
header: mini
license: apache-2.0
models:
- ai-forever/Real-ESRGAN
- fluently/Fluently-v4
- Linaqruf/anything-v3-1
- Lykon/dreamshaper-8
- prompthero/openjourney-v4
- runwayml/stable-diffusion-v1-5
- SG161222/Realistic_Vision_V5.1_noVAE
preload_from_hub:
- >-
  ai-forever/Real-ESRGAN
  RealESRGAN_x2.pth,RealESRGAN_x4.pth
- >-
  fluently/Fluently-v4
  text_encoder/model.fp16.safetensors,unet/diffusion_pytorch_model.fp16.safetensors,vae/diffusion_pytorch_model.fp16.safetensors
- >-
  Linaqruf/anything-v3-1
  text_encoder/model.safetensors,unet/diffusion_pytorch_model.safetensors,vae/diffusion_pytorch_model.safetensors
- >-
  Lykon/dreamshaper-8
  text_encoder/model.fp16.safetensors,unet/diffusion_pytorch_model.fp16.safetensors,vae/diffusion_pytorch_model.fp16.safetensors
- >-
  prompthero/openjourney-v4
  text_encoder/model.safetensors,unet/diffusion_pytorch_model.safetensors,vae/diffusion_pytorch_model.safetensors
- >-
  runwayml/stable-diffusion-v1-5
  text_encoder/model.fp16.safetensors,unet/diffusion_pytorch_model.fp16.safetensors,vae/diffusion_pytorch_model.fp16.safetensors
- >-
  SG161222/Realistic_Vision_V5.1_noVAE
  text_encoder/model.safetensors,unet/diffusion_pytorch_model.safetensors,vae/diffusion_pytorch_model.safetensors
---

# diffusion

Gradio app for Stable Diffusion 1.5 including:
* curated models and TI embeddings
* multiple samplers with Karras schedule
* Compel prompting
* 100+ styles from sdxl_prompt_styler
* FreeU and Clip Skip for quality
* DeepCache and ToMe for speed
* Real-ESRGAN upscaling
* optional TAESD

## Usage

See [`usage.md`](https://huggingface.co/spaces/adamelliotfields/diffusion/blob/main/usage.md).

## Installation

```bash
# clone
git clone https://huggingface.co/spaces/adamelliotfields/diffusion.git
cd diffusion
git remote set-url origin https://adamelliotfields:[email protected]/spaces/adamelliotfields/diffusion

# install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt torch==2.4.0 torchvision==0.19.0

# gradio
python app.py --port 7860

# cli
python cli.py 'an astronaut riding a horse on mars'
```

## TODO

- [ ] Metadata embed and display
- [ ] Image-to-image