Update app.py
Browse files
app.py
CHANGED
@@ -208,17 +208,29 @@ def generate_multi_view_images(prompt, seed):
|
|
208 |
# generator = torch.manual_seed(seed)
|
209 |
generator = torch.Generator().manual_seed(seed)
|
210 |
with torch.no_grad():
|
211 |
-
images = flux_pipe(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
prompt=prompt,
|
213 |
-
num_inference_steps=10,
|
214 |
guidance_scale=3.5,
|
215 |
-
|
216 |
width=resolution * 4,
|
217 |
-
height
|
218 |
-
output_type='np',
|
219 |
generator=generator,
|
|
|
220 |
good_vae=good_vae,
|
221 |
-
)
|
|
|
|
|
222 |
return images
|
223 |
|
224 |
# 重建 3D 模型
|
|
|
208 |
# generator = torch.manual_seed(seed)
|
209 |
generator = torch.Generator().manual_seed(seed)
|
210 |
with torch.no_grad():
|
211 |
+
# images = flux_pipe(
|
212 |
+
# prompt=prompt,
|
213 |
+
# num_inference_steps=10,
|
214 |
+
# guidance_scale=3.5,
|
215 |
+
# num_images_per_prompt=1,
|
216 |
+
# width=resolution * 4,
|
217 |
+
# height=resolution * 2,
|
218 |
+
# output_type='np',
|
219 |
+
# generator=generator,
|
220 |
+
# good_vae=good_vae,
|
221 |
+
# ).images
|
222 |
+
for images in pipe.flux_pipe_call_that_returns_an_iterable_of_images(
|
223 |
prompt=prompt,
|
|
|
224 |
guidance_scale=3.5,
|
225 |
+
num_inference_steps=20,
|
226 |
width=resolution * 4,
|
227 |
+
height==resolution * 2,
|
|
|
228 |
generator=generator,
|
229 |
+
output_type="np",
|
230 |
good_vae=good_vae,
|
231 |
+
):
|
232 |
+
pass
|
233 |
+
# 返回最终的图像和种子(通过外部调用处理)
|
234 |
return images
|
235 |
|
236 |
# 重建 3D 模型
|