Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,8 @@ def process_image(
|
|
63 |
save_masked_image=False,
|
64 |
output_path="",
|
65 |
learning_rate=learning_rate,
|
66 |
-
max_steps=max_steps
|
|
|
67 |
).images[0]
|
68 |
pipe.vae = pipe.vae.to(torch.float16)
|
69 |
return result, f"β
Inpainting completed with seed {seed}."
|
@@ -111,7 +112,7 @@ with gr.Blocks() as demo:
|
|
111 |
"""
|
112 |
)
|
113 |
gr.Markdown("<h1>π² FlowChef π²</h1>")
|
114 |
-
gr.Markdown("<h2>Inversion/Gradient/Training-free Steering of Flux.1[
|
115 |
gr.Markdown("<h2><p><a href='https://flowchef.github.io/'>Project Page</a> | <a href='#'>Paper</a></p> (Steering Rectified Flow Models in the Vector Field for Controlled Image Generation)</h2>")
|
116 |
gr.Markdown("<h3>π‘ We recommend going through our <a href='#'>tutorial introduction</a> before getting started!</h3>")
|
117 |
|
@@ -288,7 +289,7 @@ with gr.Blocks() as demo:
|
|
288 |
30, # max_steps
|
289 |
1.0, # learning_rate
|
290 |
20, # max_source_steps
|
291 |
-
|
292 |
2, # true_cfg
|
293 |
],
|
294 |
[
|
@@ -304,7 +305,7 @@ with gr.Blocks() as demo:
|
|
304 |
20, # max_steps
|
305 |
1.0, # learning_rate
|
306 |
20, # max_source_steps
|
307 |
-
|
308 |
2, # true_cfg
|
309 |
],
|
310 |
[
|
@@ -352,7 +353,7 @@ with gr.Blocks() as demo:
|
|
352 |
30, # max_steps
|
353 |
1, # learning_rate
|
354 |
20, # max_source_steps
|
355 |
-
|
356 |
2, # true_cfg
|
357 |
],
|
358 |
[
|
@@ -368,7 +369,7 @@ with gr.Blocks() as demo:
|
|
368 |
20, # max_steps
|
369 |
1, # learning_rate
|
370 |
20, # max_source_steps
|
371 |
-
|
372 |
2, # true_cfg
|
373 |
],
|
374 |
[
|
|
|
63 |
save_masked_image=False,
|
64 |
output_path="",
|
65 |
learning_rate=learning_rate,
|
66 |
+
max_steps=max_steps,
|
67 |
+
optimization_steps=optimization_steps,
|
68 |
).images[0]
|
69 |
pipe.vae = pipe.vae.to(torch.float16)
|
70 |
return result, f"β
Inpainting completed with seed {seed}."
|
|
|
112 |
"""
|
113 |
)
|
114 |
gr.Markdown("<h1>π² FlowChef π²</h1>")
|
115 |
+
gr.Markdown("<h2>Inversion/Gradient/Training-free Steering of <u>Flux.1[dev]</u></h2>")
|
116 |
gr.Markdown("<h2><p><a href='https://flowchef.github.io/'>Project Page</a> | <a href='#'>Paper</a></p> (Steering Rectified Flow Models in the Vector Field for Controlled Image Generation)</h2>")
|
117 |
gr.Markdown("<h3>π‘ We recommend going through our <a href='#'>tutorial introduction</a> before getting started!</h3>")
|
118 |
|
|
|
289 |
30, # max_steps
|
290 |
1.0, # learning_rate
|
291 |
20, # max_source_steps
|
292 |
+
5, # optimization_steps
|
293 |
2, # true_cfg
|
294 |
],
|
295 |
[
|
|
|
305 |
20, # max_steps
|
306 |
1.0, # learning_rate
|
307 |
20, # max_source_steps
|
308 |
+
5, # optimization_steps
|
309 |
2, # true_cfg
|
310 |
],
|
311 |
[
|
|
|
353 |
30, # max_steps
|
354 |
1, # learning_rate
|
355 |
20, # max_source_steps
|
356 |
+
3, # optimization_steps
|
357 |
2, # true_cfg
|
358 |
],
|
359 |
[
|
|
|
369 |
20, # max_steps
|
370 |
1, # learning_rate
|
371 |
20, # max_source_steps
|
372 |
+
3, # optimization_steps
|
373 |
2, # true_cfg
|
374 |
],
|
375 |
[
|