Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ def generate(
|
|
| 138 |
tile_size=(68, 120),
|
| 139 |
tile_stride=(34, 60),
|
| 140 |
cfg_scale=5.0,
|
| 141 |
-
cfg_merge=
|
| 142 |
num_inference_steps=steps,
|
| 143 |
)
|
| 144 |
out_dir = tempfile.mkdtemp()
|
|
@@ -159,7 +159,7 @@ CSS = """
|
|
| 159 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 160 |
"""
|
| 161 |
|
| 162 |
-
with gr.Blocks(
|
| 163 |
with gr.Column(elem_id="col-container"):
|
| 164 |
gr.Markdown(
|
| 165 |
"""
|
|
@@ -212,4 +212,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 212 |
|
| 213 |
|
| 214 |
if __name__ == "__main__":
|
| 215 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 138 |
tile_size=(68, 120),
|
| 139 |
tile_stride=(34, 60),
|
| 140 |
cfg_scale=5.0,
|
| 141 |
+
cfg_merge=False, # separate (not merged) CFG: halves all DiT activations; matches the paper's reference pipeline
|
| 142 |
num_inference_steps=steps,
|
| 143 |
)
|
| 144 |
out_dir = tempfile.mkdtemp()
|
|
|
|
| 159 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 160 |
"""
|
| 161 |
|
| 162 |
+
with gr.Blocks() as demo:
|
| 163 |
with gr.Column(elem_id="col-container"):
|
| 164 |
gr.Markdown(
|
| 165 |
"""
|
|
|
|
| 212 |
|
| 213 |
|
| 214 |
if __name__ == "__main__":
|
| 215 |
+
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)
|