Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,10 +69,13 @@ def generate(
|
|
69 |
negative_prompt: str = "",
|
70 |
use_negative_prompt: bool = False,
|
71 |
seed: int = 0,
|
72 |
-
width: int = 1024,
|
73 |
-
height: int = 1024,
|
|
|
|
|
74 |
guidance_scale: float = 3,
|
75 |
-
randomize_seed: bool =
|
|
|
76 |
progress=gr.Progress(track_tqdm=True),
|
77 |
):
|
78 |
|
@@ -88,9 +91,10 @@ def generate(
|
|
88 |
width=width,
|
89 |
height=height,
|
90 |
guidance_scale=guidance_scale,
|
91 |
-
num_inference_steps=
|
92 |
num_images_per_prompt=1,
|
93 |
-
cross_attention_kwargs={"scale":
|
|
|
94 |
output_type="pil",
|
95 |
).images
|
96 |
image_paths = [save_image(img, prompt) for img in images]
|
|
|
69 |
negative_prompt: str = "",
|
70 |
use_negative_prompt: bool = False,
|
71 |
seed: int = 0,
|
72 |
+
#width: int = 1024,
|
73 |
+
#height: int = 1024,
|
74 |
+
width: int = 1920,
|
75 |
+
height: int = 1080,
|
76 |
guidance_scale: float = 3,
|
77 |
+
randomize_seed: bool = True,
|
78 |
+
#randomize_seed: bool = False,
|
79 |
progress=gr.Progress(track_tqdm=True),
|
80 |
):
|
81 |
|
|
|
91 |
width=width,
|
92 |
height=height,
|
93 |
guidance_scale=guidance_scale,
|
94 |
+
num_inference_steps=50,
|
95 |
num_images_per_prompt=1,
|
96 |
+
cross_attention_kwargs={"scale": 2.00},
|
97 |
+
#cross_attention_kwargs={"scale": 0.65},
|
98 |
output_type="pil",
|
99 |
).images
|
100 |
image_paths = [save_image(img, prompt) for img in images]
|