alfredplpl
commited on
Commit
•
10289c4
1
Parent(s):
32bc0ab
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,8 @@ def inference(prompt, guidance, steps, image_size="Square", seed=0, img=None, st
|
|
62 |
superreso=False
|
63 |
#pipe.enable_attention_slicing()
|
64 |
elif(image_size=="Superreso."):
|
65 |
-
height=
|
66 |
-
width=
|
67 |
superreso=True
|
68 |
#pipe.enable_attention_slicing()
|
69 |
else:
|
@@ -154,7 +154,7 @@ 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=0,
|
159 |
generator=generator,
|
160 |
)
|
@@ -193,7 +193,7 @@ def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height
|
|
193 |
prompt=prompt,
|
194 |
negative_prompt = neg_prompt,
|
195 |
image=low_res_latents,
|
196 |
-
num_inference_steps=
|
197 |
guidance_scale=0,
|
198 |
generator=generator,
|
199 |
)
|
|
|
62 |
superreso=False
|
63 |
#pipe.enable_attention_slicing()
|
64 |
elif(image_size=="Superreso."):
|
65 |
+
height=768
|
66 |
+
width=768
|
67 |
superreso=True
|
68 |
#pipe.enable_attention_slicing()
|
69 |
else:
|
|
|
154 |
prompt=prompt,
|
155 |
negative_prompt = neg_prompt,
|
156 |
image=low_res_latents,
|
157 |
+
num_inference_steps=20,
|
158 |
guidance_scale=0,
|
159 |
generator=generator,
|
160 |
)
|
|
|
193 |
prompt=prompt,
|
194 |
negative_prompt = neg_prompt,
|
195 |
image=low_res_latents,
|
196 |
+
num_inference_steps=20,
|
197 |
guidance_scale=0,
|
198 |
generator=generator,
|
199 |
)
|