Spaces:
Build error
Build error
changing sampler to euler-a
Browse files
zoom.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from helpers import *
|
| 2 |
-
from diffusers import StableDiffusionInpaintPipeline,
|
| 3 |
from PIL import Image
|
| 4 |
import gradio as gr
|
| 5 |
import numpy as np
|
|
@@ -39,7 +39,7 @@ def zoom(
|
|
| 39 |
model_id,
|
| 40 |
torch_dtype=torch.float16,
|
| 41 |
)
|
| 42 |
-
pipe.scheduler =
|
| 43 |
pipe.scheduler.config)
|
| 44 |
pipe = pipe.to("cuda")
|
| 45 |
|
|
|
|
| 1 |
from helpers import *
|
| 2 |
+
from diffusers import StableDiffusionInpaintPipeline, EulerAncestralDiscreteScheduler
|
| 3 |
from PIL import Image
|
| 4 |
import gradio as gr
|
| 5 |
import numpy as np
|
|
|
|
| 39 |
model_id,
|
| 40 |
torch_dtype=torch.float16,
|
| 41 |
)
|
| 42 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(
|
| 43 |
pipe.scheduler.config)
|
| 44 |
pipe = pipe.to("cuda")
|
| 45 |
|