Spaces:
Running
on
A100
Running
on
A100
Avoid triggering recompilation
Browse files
app.py
CHANGED
@@ -219,7 +219,7 @@ class HunyuanImageApp:
|
|
219 |
seed: int,
|
220 |
use_reprompt: bool,
|
221 |
use_refiner: bool,
|
222 |
-
|
223 |
) -> Tuple[Optional[Image.Image], str]:
|
224 |
"""Generate an image using the HunyuanImage pipeline."""
|
225 |
try:
|
@@ -290,7 +290,8 @@ class HunyuanImageApp:
|
|
290 |
height: int,
|
291 |
num_inference_steps: int,
|
292 |
guidance_scale: float,
|
293 |
-
seed: int
|
|
|
294 |
"""Refine an image using the refiner pipeline."""
|
295 |
try:
|
296 |
if image is None:
|
@@ -426,11 +427,13 @@ def create_interface(auto_load: bool = True, use_distilled: bool = False, device
|
|
426 |
with gr.Row():
|
427 |
width = gr.Slider(
|
428 |
minimum=512, maximum=2048, step=64, value=2048,
|
429 |
-
label="Width", info="Image width in pixels"
|
|
|
430 |
)
|
431 |
height = gr.Slider(
|
432 |
minimum=512, maximum=2048, step=64, value=2048,
|
433 |
-
label="Height", info="Image height in pixels"
|
|
|
434 |
)
|
435 |
|
436 |
with gr.Row():
|
@@ -440,7 +443,8 @@ def create_interface(auto_load: bool = True, use_distilled: bool = False, device
|
|
440 |
)
|
441 |
guidance_scale = gr.Slider(
|
442 |
minimum=1.0, maximum=10.0, step=0.1, value=3.5,
|
443 |
-
label="Guidance Scale", info="How closely to follow the prompt"
|
|
|
444 |
)
|
445 |
|
446 |
with gr.Row():
|
|
|
219 |
seed: int,
|
220 |
use_reprompt: bool,
|
221 |
use_refiner: bool,
|
222 |
+
progress=gr.Progress(track_tqdm=True)
|
223 |
) -> Tuple[Optional[Image.Image], str]:
|
224 |
"""Generate an image using the HunyuanImage pipeline."""
|
225 |
try:
|
|
|
290 |
height: int,
|
291 |
num_inference_steps: int,
|
292 |
guidance_scale: float,
|
293 |
+
seed: int,
|
294 |
+
progress=gr.Progress(track_tqdm=True)) -> Tuple[Optional[Image.Image], str]:
|
295 |
"""Refine an image using the refiner pipeline."""
|
296 |
try:
|
297 |
if image is None:
|
|
|
427 |
with gr.Row():
|
428 |
width = gr.Slider(
|
429 |
minimum=512, maximum=2048, step=64, value=2048,
|
430 |
+
label="Width", info="Image width in pixels",
|
431 |
+
interactive=False
|
432 |
)
|
433 |
height = gr.Slider(
|
434 |
minimum=512, maximum=2048, step=64, value=2048,
|
435 |
+
label="Height", info="Image height in pixels",
|
436 |
+
interactive=False
|
437 |
)
|
438 |
|
439 |
with gr.Row():
|
|
|
443 |
)
|
444 |
guidance_scale = gr.Slider(
|
445 |
minimum=1.0, maximum=10.0, step=0.1, value=3.5,
|
446 |
+
label="Guidance Scale", info="How closely to follow the prompt",
|
447 |
+
interactive=False
|
448 |
)
|
449 |
|
450 |
with gr.Row():
|