Spaces:
Runtime error
Runtime error
Update diffusion_webui/diffusion_models/text2img_app.py
Browse files
diffusion_webui/diffusion_models/text2img_app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
-
from diffusers import StableDiffusionPipeline,
|
4 |
|
5 |
from diffusion_webui.utils.model_list import stable_model_list
|
6 |
from diffusion_webui.utils.scheduler_list import (
|
@@ -20,7 +20,7 @@ class StableDiffusionText2ImageGenerator:
|
|
20 |
):
|
21 |
if self.pipe is None or self.pipe.model_name != stable_model_path or self.pipe.scheduler_name != scheduler:
|
22 |
if stable_model_path == "stabilityai/stable-diffusion-xl-base-0.9":
|
23 |
-
self.pipe =
|
24 |
stable_model_path, safety_checker=None, torch_dtype=torch.float16
|
25 |
)
|
26 |
else:
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
+
from diffusers import StableDiffusionPipeline,DiffusionPipeline
|
4 |
|
5 |
from diffusion_webui.utils.model_list import stable_model_list
|
6 |
from diffusion_webui.utils.scheduler_list import (
|
|
|
20 |
):
|
21 |
if self.pipe is None or self.pipe.model_name != stable_model_path or self.pipe.scheduler_name != scheduler:
|
22 |
if stable_model_path == "stabilityai/stable-diffusion-xl-base-0.9":
|
23 |
+
self.pipe = DiffusionPipeline.from_pretrained(
|
24 |
stable_model_path, safety_checker=None, torch_dtype=torch.float16
|
25 |
)
|
26 |
else:
|