Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ from imagic import ImagicStableDiffusionPipeline
|
|
12 |
has_cuda = torch.cuda.is_available()
|
13 |
device = "cuda"
|
14 |
|
15 |
-
pipe =
|
16 |
"CompVis/stable-diffusion-v1-4",
|
17 |
safety_checker=None,
|
18 |
-
custom_pipeline=ImagicStableDiffusionPipeline,
|
19 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
20 |
).to(device)
|
21 |
|
|
|
12 |
has_cuda = torch.cuda.is_available()
|
13 |
device = "cuda"
|
14 |
|
15 |
+
pipe = ImagicStableDiffusionPipeline.from_pretrained(
|
16 |
"CompVis/stable-diffusion-v1-4",
|
17 |
safety_checker=None,
|
18 |
+
#custom_pipeline=ImagicStableDiffusionPipeline,
|
19 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
20 |
).to(device)
|
21 |
|