Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Commit
•
6b66635
1
Parent(s):
af8f4a3
Segmind Vega
Browse files- DOCS.md +2 -0
- README.md +10 -18
- app.py +1 -1
- lib/config.py +2 -1
- lib/inference.py +3 -0
DOCS.md
CHANGED
@@ -23,7 +23,9 @@ Rescale up to 4x using [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) fro
|
|
23 |
Each model checkpoint has a different aesthetic:
|
24 |
|
25 |
* [cagliostrolab/animagine-xl-3.1](https://huggingface.co/cagliostrolab/animagine-xl-3.1): anime
|
|
|
26 |
* [fluently/Fluently-XL-Final](https://huggingface.co/fluently/Fluently-XL-Final): general purpose
|
|
|
27 |
* [SG161222/RealVisXL_V5.0](https://huggingface.co/SG161222/RealVisXL_V5.0): photorealistic
|
28 |
* [stabilityai/stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0): base
|
29 |
|
|
|
23 |
Each model checkpoint has a different aesthetic:
|
24 |
|
25 |
* [cagliostrolab/animagine-xl-3.1](https://huggingface.co/cagliostrolab/animagine-xl-3.1): anime
|
26 |
+
* [cyberdelia/CyberRealisticXL](https://huggingface.co/cyberdelia/CyberRealsticXL): photorealistic
|
27 |
* [fluently/Fluently-XL-Final](https://huggingface.co/fluently/Fluently-XL-Final): general purpose
|
28 |
+
* [segmind/Segmind-Vega](https://huggingface.co/segmind/Segmind-Vega): lightweight general purpose (default)
|
29 |
* [SG161222/RealVisXL_V5.0](https://huggingface.co/SG161222/RealVisXL_V5.0): photorealistic
|
30 |
* [stabilityai/stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0): base
|
31 |
|
README.md
CHANGED
@@ -19,31 +19,23 @@ models:
|
|
19 |
- cyberdelia/CyberRealsticXL
|
20 |
- fluently/Fluently-XL-Final
|
21 |
- madebyollin/sdxl-vae-fp16-fix
|
|
|
22 |
- SG161222/RealVisXL_V5.0
|
23 |
- stabilityai/stable-diffusion-xl-base-1.0
|
24 |
- stabilityai/stable-diffusion-xl-refiner-1.0
|
25 |
preload_from_hub:
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
- >-
|
27 |
-
|
28 |
-
|
29 |
-
- >-
|
30 |
-
cagliostrolab/animagine-xl-3.1
|
31 |
-
animagine-xl-3.1.safetensors
|
32 |
-
- >-
|
33 |
-
cyberdelia/CyberRealsticXL
|
34 |
-
CyberRealisticXLPlay_V1.0.safetensors
|
35 |
-
- >-
|
36 |
-
fluently/Fluently-XL-Final
|
37 |
-
FluentlyXL-Final.safetensors
|
38 |
-
- >-
|
39 |
-
madebyollin/sdxl-vae-fp16-fix
|
40 |
-
config.json,diffusion_pytorch_model.safetensors
|
41 |
-
- >-
|
42 |
-
SG161222/RealVisXL_V5.0
|
43 |
-
RealVisXL_V5.0_fp16.safetensors
|
44 |
- >-
|
45 |
stabilityai/stable-diffusion-xl-base-1.0
|
46 |
-
scheduler/scheduler_config.json,text_encoder/config.json,text_encoder/model.fp16.safetensors,text_encoder_2/config.json,text_encoder_2/model.fp16.safetensors,tokenizer/merges.txt,tokenizer/special_tokens_map.json,tokenizer/tokenizer_config.json,tokenizer/vocab.json,tokenizer_2/merges.txt,tokenizer_2/special_tokens_map.json,tokenizer_2/tokenizer_config.json,tokenizer_2/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
|
47 |
- >-
|
48 |
stabilityai/stable-diffusion-xl-refiner-1.0
|
49 |
scheduler/scheduler_config.json,text_encoder_2/config.json,text_encoder_2/model.fp16.safetensors,tokenizer_2/merges.txt,tokenizer_2/special_tokens_map.json,tokenizer_2/tokenizer_config.json,tokenizer_2/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
|
|
|
19 |
- cyberdelia/CyberRealsticXL
|
20 |
- fluently/Fluently-XL-Final
|
21 |
- madebyollin/sdxl-vae-fp16-fix
|
22 |
+
- segmind/Segmind-Vega
|
23 |
- SG161222/RealVisXL_V5.0
|
24 |
- stabilityai/stable-diffusion-xl-base-1.0
|
25 |
- stabilityai/stable-diffusion-xl-refiner-1.0
|
26 |
preload_from_hub:
|
27 |
+
- ai-forever/Real-ESRGAN RealESRGAN_x2.pth,RealESRGAN_x4.pth
|
28 |
+
- cagliostrolab/animagine-xl-3.1 animagine-xl-3.1.safetensors
|
29 |
+
- cyberdelia/CyberRealsticXL CyberRealisticXLPlay_V1.0.safetensors
|
30 |
+
- fluently/Fluently-XL-Final FluentlyXL-Final.safetensors
|
31 |
+
- madebyollin/sdxl-vae-fp16-fix config.json,diffusion_pytorch_model.safetensors
|
32 |
+
- SG161222/RealVisXL_V5.0 RealVisXL_V5.0_fp16.safetensors
|
33 |
- >-
|
34 |
+
segmind/Segmind-Vega
|
35 |
+
scheduler/scheduler_config.json,text_encoder/config.json,text_encoder/model.fp16.safetensors,text_encoder_2/config.json,text_encoder_2/model.fp16.safetensors,tokenizer/merges.txt,tokenizer/special_tokens_map.json,tokenizer/tokenizer_config.json,tokenizer/vocab.json,tokenizer_2/merges.txt,tokenizer_2/special_tokens_map.json,tokenizer_2/tokenizer_config.json,tokenizer_2/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
- >-
|
37 |
stabilityai/stable-diffusion-xl-base-1.0
|
38 |
+
scheduler/scheduler_config.json,text_encoder/config.json,text_encoder/model.fp16.safetensors,text_encoder_2/config.json,text_encoder_2/model.fp16.safetensors,tokenizer/merges.txt,tokenizer/special_tokens_map.json,tokenizer/tokenizer_config.json,tokenizer/vocab.json,tokenizer_2/merges.txt,tokenizer_2/special_tokens_map.json,tokenizer_2/tokenizer_config.json,tokenizer_2/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,vae_1_0/config.json,model_index.json
|
39 |
- >-
|
40 |
stabilityai/stable-diffusion-xl-refiner-1.0
|
41 |
scheduler/scheduler_config.json,text_encoder_2/config.json,text_encoder_2/model.fp16.safetensors,tokenizer_2/merges.txt,tokenizer_2/special_tokens_map.json,tokenizer_2/tokenizer_config.json,tokenizer_2/vocab.json,unet/config.json,unet/diffusion_pytorch_model.fp16.safetensors,vae/config.json,vae/diffusion_pytorch_model.fp16.safetensors,model_index.json
|
app.py
CHANGED
@@ -225,7 +225,7 @@ with gr.Blocks(
|
|
225 |
use_refiner = gr.Checkbox(
|
226 |
elem_classes=["checkbox"],
|
227 |
label="Refiner",
|
228 |
-
value=
|
229 |
)
|
230 |
|
231 |
# Main content
|
|
|
225 |
use_refiner = gr.Checkbox(
|
226 |
elem_classes=["checkbox"],
|
227 |
label="Refiner",
|
228 |
+
value=False,
|
229 |
)
|
230 |
|
231 |
# Main content
|
lib/config.py
CHANGED
@@ -23,11 +23,12 @@ Config = SimpleNamespace(
|
|
23 |
"txt2img": StableDiffusionXLPipeline,
|
24 |
"img2img": StableDiffusionXLImg2ImgPipeline,
|
25 |
},
|
26 |
-
MODEL="
|
27 |
MODELS=[
|
28 |
"cagliostrolab/animagine-xl-3.1",
|
29 |
"cyberdelia/CyberRealsticXL",
|
30 |
"fluently/Fluently-XL-Final",
|
|
|
31 |
"SG161222/RealVisXL_V5.0",
|
32 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
33 |
],
|
|
|
23 |
"txt2img": StableDiffusionXLPipeline,
|
24 |
"img2img": StableDiffusionXLImg2ImgPipeline,
|
25 |
},
|
26 |
+
MODEL="segmind/Segmind-Vega",
|
27 |
MODELS=[
|
28 |
"cagliostrolab/animagine-xl-3.1",
|
29 |
"cyberdelia/CyberRealsticXL",
|
30 |
"fluently/Fluently-XL-Final",
|
31 |
+
"segmind/Segmind-Vega",
|
32 |
"SG161222/RealVisXL_V5.0",
|
33 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
34 |
],
|
lib/inference.py
CHANGED
@@ -165,6 +165,9 @@ def generate(
|
|
165 |
TQDM,
|
166 |
)
|
167 |
|
|
|
|
|
|
|
168 |
pipe = loader.pipe
|
169 |
refiner = loader.refiner
|
170 |
|
|
|
165 |
TQDM,
|
166 |
)
|
167 |
|
168 |
+
if loader.pipe is None:
|
169 |
+
raise Error(f"RuntimeError: Error loading {model}")
|
170 |
+
|
171 |
pipe = loader.pipe
|
172 |
refiner = loader.refiner
|
173 |
|