Update app.py
Browse files
app.py
CHANGED
@@ -16,15 +16,14 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
16 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
17 |
).to(device)
|
18 |
|
19 |
-
generator = torch.Generator("cuda").manual_seed(0)
|
20 |
|
21 |
def infer(prompt, init_image):
|
22 |
res = pipe.train(
|
23 |
prompt,
|
24 |
init_image,
|
25 |
guidance_scale=7.5,
|
26 |
-
num_inference_steps=50
|
27 |
-
generator=generator)
|
28 |
|
29 |
res = pipe(alpha=1)
|
30 |
|
|
|
16 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
17 |
).to(device)
|
18 |
|
19 |
+
#generator = torch.Generator("cuda").manual_seed(0)
|
20 |
|
21 |
def infer(prompt, init_image):
|
22 |
res = pipe.train(
|
23 |
prompt,
|
24 |
init_image,
|
25 |
guidance_scale=7.5,
|
26 |
+
num_inference_steps=50)
|
|
|
27 |
|
28 |
res = pipe(alpha=1)
|
29 |
|