Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -129,10 +129,20 @@ def generate(
|
|
129 |
use_resolution_binning: bool = True,
|
130 |
progress=gr.Progress(track_tqdm=True),
|
131 |
):
|
|
|
|
|
|
|
|
|
|
|
132 |
prompt, negative_prompt = apply_style(style, prompt, negative_prompt)
|
133 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
134 |
generator = torch.Generator().manual_seed(seed)
|
135 |
|
|
|
|
|
|
|
|
|
|
|
136 |
options = {
|
137 |
"prompt": prompt,
|
138 |
"negative_prompt": negative_prompt,
|
@@ -146,6 +156,9 @@ def generate(
|
|
146 |
"output_type": "pil",
|
147 |
}
|
148 |
|
|
|
|
|
|
|
149 |
images = pipe(**options).images + pipe2(**options).images
|
150 |
|
151 |
image_paths = [save_image(img) for img in images]
|
@@ -154,7 +167,7 @@ def generate(
|
|
154 |
|
155 |
examples = [
|
156 |
(
|
157 |
-
"college life of 21 year old
|
158 |
" focus, minimalism, fujifilm xh2s with Canon EF lens, cinematic --ar 85:128"
|
159 |
" --v 6.0 --style raw"
|
160 |
),
|
|
|
129 |
use_resolution_binning: bool = True,
|
130 |
progress=gr.Progress(track_tqdm=True),
|
131 |
):
|
132 |
+
|
133 |
+
|
134 |
+
print("prompt1 = ", prompt)
|
135 |
+
print("negative_prompt1 = ", negative_prompt)
|
136 |
+
|
137 |
prompt, negative_prompt = apply_style(style, prompt, negative_prompt)
|
138 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
139 |
generator = torch.Generator().manual_seed(seed)
|
140 |
|
141 |
+
print("prompt2 = ", prompt)
|
142 |
+
print("negative_prompt2 = ", negative_prompt)
|
143 |
+
|
144 |
+
print("seed = ", seed)
|
145 |
+
|
146 |
options = {
|
147 |
"prompt": prompt,
|
148 |
"negative_prompt": negative_prompt,
|
|
|
156 |
"output_type": "pil",
|
157 |
}
|
158 |
|
159 |
+
print("options = ")
|
160 |
+
print(options)
|
161 |
+
|
162 |
images = pipe(**options).images + pipe2(**options).images
|
163 |
|
164 |
image_paths = [save_image(img) for img in images]
|
|
|
167 |
|
168 |
examples = [
|
169 |
(
|
170 |
+
"college life of 21 year old, depth of field, bokeh, shallow"
|
171 |
" focus, minimalism, fujifilm xh2s with Canon EF lens, cinematic --ar 85:128"
|
172 |
" --v 6.0 --style raw"
|
173 |
),
|