Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline
|
| 2 |
import gradio as gr
|
| 3 |
import torch
|
| 4 |
from PIL import Image
|
|
@@ -11,12 +11,12 @@ prefix = 'RAW photo,'
|
|
| 11 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 12 |
model_id,
|
| 13 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
| 14 |
-
|
| 15 |
|
| 16 |
pipe_i2i = StableDiffusionImg2ImgPipeline.from_pretrained(
|
| 17 |
model_id,
|
| 18 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
| 19 |
-
|
| 20 |
|
| 21 |
if torch.cuda.is_available():
|
| 22 |
pipe = pipe.to("cuda")
|
|
|
|
| 1 |
+
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline,# DPMSolverMultistepScheduler
|
| 2 |
import gradio as gr
|
| 3 |
import torch
|
| 4 |
from PIL import Image
|
|
|
|
| 11 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 12 |
model_id,
|
| 13 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
| 14 |
+
# scheduler=scheduler)
|
| 15 |
|
| 16 |
pipe_i2i = StableDiffusionImg2ImgPipeline.from_pretrained(
|
| 17 |
model_id,
|
| 18 |
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
| 19 |
+
# scheduler=scheduler)
|
| 20 |
|
| 21 |
if torch.cuda.is_available():
|
| 22 |
pipe = pipe.to("cuda")
|