Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
a17a70f
1
Parent(s):
0c0b8b9
Disabled super res by default
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def img_from_path(
|
|
78 |
|
79 |
|
80 |
@spaces.GPU(duration=20)
|
81 |
-
def infer(img_path, seed=1000, randomize_seed=False, timesteps=25, cfg_scale=7.5, perform_norm_guidance=True, super_res=
|
82 |
if randomize_seed:
|
83 |
seed = None
|
84 |
|
@@ -168,15 +168,14 @@ with gr.Blocks(css=css, theme=gr.themes.Base()) as demo:
|
|
168 |
the guidance scale, and whether to perform [Adaptive Projected Guidance](https://arxiv.org/abs/2410.02416) (we recommend enabling it).
|
169 |
|
170 |
This FlexTok model operates at 256x256 resolution. You can optionally super-resolve the reconstructions to 1024x1024 using Aura-SR for
|
171 |
-
sharper details, whithout changing the underlying reconstructed image too much.
|
172 |
-
like to see the raw 256x256 FlexTok reconstructions.
|
173 |
""")
|
174 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=1000)
|
175 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
176 |
timesteps = gr.Slider(label="Denoising timesteps", minimum=1, maximum=1000, step=1, value=25)
|
177 |
cfg_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=15.0, step=0.1, value=7.5)
|
178 |
perform_norm_guidance = gr.Checkbox(label="Perform Adaptive Projected Guidance", value=True)
|
179 |
-
super_res = gr.Checkbox(label="Super-resolve reconstructions from 256x256 to 1024x1024 with Aura-SR", value=
|
180 |
|
181 |
result = gr.Gallery(
|
182 |
label="Reconstructions", show_label=True, elem_id="gallery", type='pil',
|
|
|
78 |
|
79 |
|
80 |
@spaces.GPU(duration=20)
|
81 |
+
def infer(img_path, seed=1000, randomize_seed=False, timesteps=25, cfg_scale=7.5, perform_norm_guidance=True, super_res=False):
|
82 |
if randomize_seed:
|
83 |
seed = None
|
84 |
|
|
|
168 |
the guidance scale, and whether to perform [Adaptive Projected Guidance](https://arxiv.org/abs/2410.02416) (we recommend enabling it).
|
169 |
|
170 |
This FlexTok model operates at 256x256 resolution. You can optionally super-resolve the reconstructions to 1024x1024 using Aura-SR for
|
171 |
+
sharper details, whithout changing the underlying reconstructed image too much.
|
|
|
172 |
""")
|
173 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=1000)
|
174 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
|
175 |
timesteps = gr.Slider(label="Denoising timesteps", minimum=1, maximum=1000, step=1, value=25)
|
176 |
cfg_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=15.0, step=0.1, value=7.5)
|
177 |
perform_norm_guidance = gr.Checkbox(label="Perform Adaptive Projected Guidance", value=True)
|
178 |
+
super_res = gr.Checkbox(label="Super-resolve reconstructions from 256x256 to 1024x1024 with Aura-SR", value=False)
|
179 |
|
180 |
result = gr.Gallery(
|
181 |
label="Reconstructions", show_label=True, elem_id="gallery", type='pil',
|