Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
•
44b4617
1
Parent(s):
ab77a90
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
import random
|
5 |
from huggingface_hub import snapshot_download
|
6 |
from diffusers import StableDiffusionXLPipeline, AutoencoderKL
|
7 |
-
from diffusers import EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler, DPMSolverSDEScheduler
|
8 |
from diffusers.models.attention_processor import AttnProcessor2_0
|
9 |
import gradio as gr
|
10 |
from PIL import Image
|
@@ -70,7 +70,8 @@ pipe_cyber.unet.set_attn_processor(AttnProcessor2_0())
|
|
70 |
# Define samplers
|
71 |
samplers = {
|
72 |
"Euler a": EulerAncestralDiscreteScheduler.from_config(pipe_pony.scheduler.config),
|
73 |
-
"DPM++ SDE Karras": DPMSolverSDEScheduler.from_config(pipe_pony.scheduler.config, use_karras_sigmas=True)
|
|
|
74 |
}
|
75 |
|
76 |
DEFAULT_POSITIVE_PREFIX = "score_9, score_8_up, score_7_up, BREAK"
|
|
|
4 |
import random
|
5 |
from huggingface_hub import snapshot_download
|
6 |
from diffusers import StableDiffusionXLPipeline, AutoencoderKL
|
7 |
+
from diffusers import EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler, DPMSolverSDEScheduler, HeunDiscreteScheduler
|
8 |
from diffusers.models.attention_processor import AttnProcessor2_0
|
9 |
import gradio as gr
|
10 |
from PIL import Image
|
|
|
70 |
# Define samplers
|
71 |
samplers = {
|
72 |
"Euler a": EulerAncestralDiscreteScheduler.from_config(pipe_pony.scheduler.config),
|
73 |
+
"DPM++ SDE Karras": DPMSolverSDEScheduler.from_config(pipe_pony.scheduler.config, use_karras_sigmas=True),
|
74 |
+
"Heun": HeunDiscreteScheduler.from_config(pipe_pony.scheduler.config)
|
75 |
}
|
76 |
|
77 |
DEFAULT_POSITIVE_PREFIX = "score_9, score_8_up, score_7_up, BREAK"
|