Spaces:
Running
on
Zero
Running
on
Zero
feat: add paper ref
Browse files
app.py
CHANGED
|
@@ -83,8 +83,8 @@ def get_duration(
|
|
| 83 |
src_prompt_val: str, tar_prompt_val: str,
|
| 84 |
src_guidance_scale_val: float, tar_guidance_scale_val: float,
|
| 85 |
) -> float:
|
| 86 |
-
step_duration = 0.
|
| 87 |
-
return (n_max_val * (flowopt_iterations_val + 2) * step_duration) +
|
| 88 |
|
| 89 |
@spaces.GPU(duration=get_duration)
|
| 90 |
def FlowOpt_run(
|
|
@@ -146,7 +146,7 @@ def FlowOpt_run(
|
|
| 146 |
intro = """
|
| 147 |
<h1 style="font-weight: 1000; text-align: center; margin: 0px;">FlowOpt: Fast Optimization Through Whole Flow Processes for Training-Free Editing</h1>
|
| 148 |
<h3 style="margin-bottom: 10px; text-align: center;">
|
| 149 |
-
<a href="">[Paper]</a> |
|
| 150 |
<a href="https://orronai.github.io/FlowOpt/">[Project Page]</a> |
|
| 151 |
<a href="https://github.com/orronai/FlowOpt">[Code]</a>
|
| 152 |
</h3>
|
|
|
|
| 83 |
src_prompt_val: str, tar_prompt_val: str,
|
| 84 |
src_guidance_scale_val: float, tar_guidance_scale_val: float,
|
| 85 |
) -> float:
|
| 86 |
+
step_duration = 0.5 if model_type_val == 'FLUX' else 0.15
|
| 87 |
+
return (n_max_val * (flowopt_iterations_val + 2) * step_duration) + 30
|
| 88 |
|
| 89 |
@spaces.GPU(duration=get_duration)
|
| 90 |
def FlowOpt_run(
|
|
|
|
| 146 |
intro = """
|
| 147 |
<h1 style="font-weight: 1000; text-align: center; margin: 0px;">FlowOpt: Fast Optimization Through Whole Flow Processes for Training-Free Editing</h1>
|
| 148 |
<h3 style="margin-bottom: 10px; text-align: center;">
|
| 149 |
+
<a href="https://arxiv.org/abs/2510.22010">[Paper]</a> |
|
| 150 |
<a href="https://orronai.github.io/FlowOpt/">[Project Page]</a> |
|
| 151 |
<a href="https://github.com/orronai/FlowOpt">[Code]</a>
|
| 152 |
</h3>
|