Spaces:
Running
on
Zero
Running
on
Zero
feat: format & env
Browse files- app.py +8 -6
- requirements.txt +6 -3
app.py
CHANGED
|
@@ -123,9 +123,9 @@ def run(
|
|
| 123 |
|
| 124 |
generator = torch.Generator(device=accelerator.device).manual_seed(seed_input)
|
| 125 |
|
| 126 |
-
if scheduler == 'euler':
|
| 127 |
pipeline.scheduler = FlowMatchEulerDiscreteScheduler()
|
| 128 |
-
elif scheduler == 'dpmsolver++':
|
| 129 |
pipeline.scheduler = DPMSolverMultistepScheduler(
|
| 130 |
algorithm_type="dpmsolver++",
|
| 131 |
solver_type="midpoint",
|
|
@@ -201,9 +201,11 @@ title = f"""
|
|
| 201 |
badges_text = r"""
|
| 202 |
<div style="text-align: center; display: flex; justify-content: center; gap: 5px;">
|
| 203 |
<a href="https://github.com/bytedance/UMO"><img alt="Build" src="https://img.shields.io/github/stars/bytedance/UMO"></a>
|
| 204 |
-
<a href="https://bytedance.github.io/UMO/"><img alt="Build" src="https://img.shields.io/badge/Project%20Page-UMO-
|
|
|
|
| 205 |
<a href="https://arxiv.org/abs/2509.06818"><img alt="Build" src="https://img.shields.io/badge/arXiv%20paper-UMO-b31b1b.svg"></a>
|
| 206 |
-
<a href="https://huggingface.co/bytedance-research/
|
|
|
|
| 207 |
</div>
|
| 208 |
""".strip()
|
| 209 |
|
|
@@ -291,8 +293,8 @@ def main(args):
|
|
| 291 |
with gr.Row(equal_height=True):
|
| 292 |
global enable_taylorseer
|
| 293 |
global enable_teacache
|
| 294 |
-
enable_taylorseer = gr.Checkbox(label="
|
| 295 |
-
enable_teacache = gr.Checkbox(label="
|
| 296 |
|
| 297 |
with gr.Row(equal_height=True):
|
| 298 |
scheduler_input = gr.Dropdown(
|
|
|
|
| 123 |
|
| 124 |
generator = torch.Generator(device=accelerator.device).manual_seed(seed_input)
|
| 125 |
|
| 126 |
+
if scheduler == 'euler' and not isinstance(pipeline.scheduler, FlowMatchEulerDiscreteScheduler):
|
| 127 |
pipeline.scheduler = FlowMatchEulerDiscreteScheduler()
|
| 128 |
+
elif scheduler == 'dpmsolver++' and not isinstance(pipeline.scheduler, DPMSolverMultistepScheduler):
|
| 129 |
pipeline.scheduler = DPMSolverMultistepScheduler(
|
| 130 |
algorithm_type="dpmsolver++",
|
| 131 |
solver_type="midpoint",
|
|
|
|
| 201 |
badges_text = r"""
|
| 202 |
<div style="text-align: center; display: flex; justify-content: center; gap: 5px;">
|
| 203 |
<a href="https://github.com/bytedance/UMO"><img alt="Build" src="https://img.shields.io/github/stars/bytedance/UMO"></a>
|
| 204 |
+
<a href="https://bytedance.github.io/UMO/"><img alt="Build" src="https://img.shields.io/badge/Project%20Page-UMO-blue"></a>
|
| 205 |
+
<a href="https://huggingface.co/bytedance-research/UMO"><img src="https://img.shields.io/static/v1?label=%F0%9F%A4%97%20Hugging%20Face&message=Model&color=green"></a>
|
| 206 |
<a href="https://arxiv.org/abs/2509.06818"><img alt="Build" src="https://img.shields.io/badge/arXiv%20paper-UMO-b31b1b.svg"></a>
|
| 207 |
+
<a href="https://huggingface.co/spaces/bytedance-research/UMO_UNO"><img src="https://img.shields.io/static/v1?label=%F0%9F%A4%97%20Demo&message=UMO-UNO&color=orange"></a>
|
| 208 |
+
<a href="https://huggingface.co/spaces/bytedance-research/UMO_OmniGen2"><img src="https://img.shields.io/static/v1?label=%F0%9F%A4%97%20Demo&message=UMO-OmniGen2&color=orange"></a>
|
| 209 |
</div>
|
| 210 |
""".strip()
|
| 211 |
|
|
|
|
| 293 |
with gr.Row(equal_height=True):
|
| 294 |
global enable_taylorseer
|
| 295 |
global enable_teacache
|
| 296 |
+
enable_taylorseer = gr.Checkbox(label="Using TaylorSeer to speed up", value=True)
|
| 297 |
+
enable_teacache = gr.Checkbox(label="Using TeaCache to speed up", value=False)
|
| 298 |
|
| 299 |
with gr.Row(equal_height=True):
|
| 300 |
scheduler_input = gr.Dropdown(
|
requirements.txt
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
torchvision==0.21.0
|
| 3 |
timm
|
| 4 |
einops
|
| 5 |
accelerate
|
|
@@ -18,4 +17,8 @@ ipykernel
|
|
| 18 |
wheel
|
| 19 |
triton-windows; sys_platform == "win32"
|
| 20 |
# flash-attn==2.7.4.post1
|
| 21 |
-
peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
|
|
|
| 2 |
timm
|
| 3 |
einops
|
| 4 |
accelerate
|
|
|
|
| 17 |
wheel
|
| 18 |
triton-windows; sys_platform == "win32"
|
| 19 |
# flash-attn==2.7.4.post1
|
| 20 |
+
peft
|
| 21 |
+
|
| 22 |
+
--extra-index-url https://download.pytorch.org/whl/cu124
|
| 23 |
+
torch==2.6.0
|
| 24 |
+
torchvision==0.21.0
|