alfredplpl
commited on
Commit
·
0813521
1
Parent(s):
2d6135c
Update app.py
Browse files
app.py
CHANGED
@@ -154,9 +154,8 @@ def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator,sup
|
|
154 |
prompt=prompt,
|
155 |
negative_prompt = neg_prompt,
|
156 |
image=low_res_latents,
|
157 |
-
num_inference_steps=
|
158 |
-
guidance_scale=
|
159 |
-
output_type="latent",
|
160 |
generator=generator,
|
161 |
)
|
162 |
pipe=pipe.to("cuda")
|
@@ -194,8 +193,8 @@ def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height
|
|
194 |
prompt=prompt,
|
195 |
negative_prompt = neg_prompt,
|
196 |
image=low_res_latents,
|
197 |
-
num_inference_steps=
|
198 |
-
guidance_scale=
|
199 |
generator=generator,
|
200 |
)
|
201 |
pipe=pipe.to("cuda")
|
|
|
154 |
prompt=prompt,
|
155 |
negative_prompt = neg_prompt,
|
156 |
image=low_res_latents,
|
157 |
+
num_inference_steps=50,
|
158 |
+
guidance_scale=7.5,
|
|
|
159 |
generator=generator,
|
160 |
)
|
161 |
pipe=pipe.to("cuda")
|
|
|
193 |
prompt=prompt,
|
194 |
negative_prompt = neg_prompt,
|
195 |
image=low_res_latents,
|
196 |
+
num_inference_steps=50,
|
197 |
+
guidance_scale=7.5,
|
198 |
generator=generator,
|
199 |
)
|
200 |
pipe=pipe.to("cuda")
|