File size: 3,252 Bytes
6d7617e
2e278ad
a46e137
 
2e278ad
9ae9087
 
6d7617e
98afd85
0c7fe13
db913db
c1548a1
4bab8a1
0c7fe13
6d7617e
17fa6fa
579e8d0
9edebae
4719a50
7517078
61ad3d2
7517078
4719a50
7517078
4719a50
9edebae
724f8ed
9edebae
 
 
4719a50
 
 
7517078
 
9edebae
61ad3d2
 
 
98afd85
 
 
7517078
 
507ffa3
7517078
4719a50
 
7517078
 
9edebae
4719a50
 
 
9edebae
 
 
6d7617e
 
7517078
 
f24703f
14665b0
 
eb8fc69
7a7cda5
eb8fc69
4d5d84d
c348e53
301d341
 
 
f24703f
301d341
 
 
 
85432e1
 
 
 
 
 
301d341
 
4719a50
301d341
5c4e8c1
 
301d341
9edebae
 
 
 
 
 
 
 
 
 
 
 
 
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# https://huggingface.co/docs/hub/en/spaces-config-reference
title: Diffusion
short_description: Image generation studio for SD 1.5
emoji: 🧨
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 4.44.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
- cyberdelia/CyberRealistic
- dreamlike-art/dreamlike-photoreal-2.0
- fluently/Fluently-v4
- h94/IP-Adapter
- Lykon/dreamshaper-8
- s6yx/ReV_Animated
- SG161222/Realistic_Vision_V5.1_noVAE
- stable-diffusion-v1-5/stable-diffusion-v1-5
- XpucT/Deliberate
preload_from_hub:  # up to 10
- >-
  cyberdelia/CyberRealistic
  CyberRealistic_V5_FP16.safetensors
- >-
  dreamlike-art/dreamlike-photoreal-2.0
  dreamlike-photoreal-2.0.safetensors
- >-
  fluently/Fluently-v4
  Fluently-v4.safetensors
- >-
  h94/IP-Adapter
  models/ip-adapter-full-face_sd15.safetensors,models/ip-adapter-plus_sd15.safetensors,models/image_encoder/model.safetensors
- >-
  lllyasviel/control_v11p_sd15_canny
  diffusion_pytorch_model.fp16.safetensors
- >-
  Lykon/dreamshaper-8
  feature_extractor/preprocessor_config.json,safety_checker/config.json,scheduler/scheduler_config.json,text_encoder/config.json,text_encoder/model.fp16.safetensors,tokenizer/merges.txt,tokenizer/special_tokens_map.json,tokenizer/tokenizer_config.json,tokenizer/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
- >-
  s6yx/ReV_Animated
  rev_1.2.2/rev_1.2.2-fp16.safetensors
- >-
  SG161222/Realistic_Vision_V5.1_noVAE
  Realistic_Vision_V5.1_fp16-no-ema.safetensors
- >-
  stable-diffusion-v1-5/stable-diffusion-v1-5
  feature_extractor/preprocessor_config.json,safety_checker/config.json,scheduler/scheduler_config.json,text_encoder/config.json,text_encoder/model.fp16.safetensors,tokenizer/merges.txt,tokenizer/special_tokens_map.json,tokenizer/tokenizer_config.json,tokenizer/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
- >-
  XpucT/Deliberate
  Deliberate_v6.safetensors
---

# diffusion

Gradio app for Stable Diffusion 1.5 featuring:
* txt2img and img2img pipelines with IP-Adapter
* ControlNet with Canny edge detection (more preprocessors coming soon)
* Compel prompt weighting
* Hand-written style templates
* Multiple samplers with Karras scheduling
* DeepCache available
* Real-ESRGAN upscaling

## Usage

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

## Installation

```bash
# clone
git clone https://huggingface.co/spaces/adamelliotfields/diffusion.git
cd diffusion
git remote set-url origin https://adamelliotfields:$HF_TOKEN@huggingface.co/spaces/adamelliotfields/diffusion

# install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# gradio
python app.py --port 7860
```

## Development

See [pull requests and discussions](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions).

```sh
git fetch origin refs/pr/42:pr/42
git checkout pr/42
# ...
git add .
git commit -m "Commit message"
git push origin pr/42:refs/pr/42
```