Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -287,7 +287,7 @@ class GuiSD:
|
|
287 |
def __init__(self):
|
288 |
self.model = None
|
289 |
|
290 |
-
@spaces.GPU
|
291 |
def infer(self, model, pipe_params):
|
292 |
images, image_list = model(**pipe_params)
|
293 |
return images
|
@@ -685,8 +685,8 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
|
|
685 |
hires_prompt_gui = gr.Textbox(label="Hires Prompt", placeholder="Main prompt will be use", lines=3)
|
686 |
hires_negative_prompt_gui = gr.Textbox(label="Hires Negative Prompt", placeholder="Main negative prompt will be use", lines=3)
|
687 |
|
688 |
-
with gr.Accordion("Detailfix", open=False, visible=
|
689 |
-
|
690 |
# Adetailer Inpaint Only
|
691 |
adetailer_inpaint_only_gui = gr.Checkbox(label="Inpaint only", value=True)
|
692 |
|
@@ -722,10 +722,13 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
|
|
722 |
mask_dilation_b_gui = gr.Number(label="Mask dilation:", value=4, minimum=1)
|
723 |
mask_blur_b_gui = gr.Number(label="Mask blur:", value=4, minimum=1)
|
724 |
mask_padding_b_gui = gr.Number(label="Mask padding:", value=32, minimum=1)
|
725 |
-
|
726 |
-
with gr.Accordion("Other settings", open=False, visible=
|
727 |
hires_before_adetailer_gui = gr.Checkbox(value=False, label="Hires Before Adetailer")
|
728 |
hires_after_adetailer_gui = gr.Checkbox(value=True, label="Hires After Adetailer")
|
|
|
|
|
|
|
729 |
loop_generation_gui = gr.Slider(minimum=1, value=1, label="Loop Generation")
|
730 |
leave_progress_bar_gui = gr.Checkbox(value=True, label="Leave Progress Bar")
|
731 |
disable_progress_bar_gui = gr.Checkbox(value=False, label="Disable Progress Bar")
|
@@ -737,7 +740,6 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
|
|
737 |
retain_detailfix_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Detailfix Model Previous Load")
|
738 |
retain_hires_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Hires Model Previous Load")
|
739 |
xformers_memory_efficient_attention_gui = gr.Checkbox(value=False, label="Xformers Memory Efficient Attention")
|
740 |
-
generator_in_cpu_gui = gr.Checkbox(value=False, label="Generator in CPU")
|
741 |
|
742 |
with gr.Tab("Inpaint mask maker", render=True):
|
743 |
|
|
|
287 |
def __init__(self):
|
288 |
self.model = None
|
289 |
|
290 |
+
@spaces.GPU(duration=120)
|
291 |
def infer(self, model, pipe_params):
|
292 |
images, image_list = model(**pipe_params)
|
293 |
return images
|
|
|
685 |
hires_prompt_gui = gr.Textbox(label="Hires Prompt", placeholder="Main prompt will be use", lines=3)
|
686 |
hires_negative_prompt_gui = gr.Textbox(label="Hires Negative Prompt", placeholder="Main negative prompt will be use", lines=3)
|
687 |
|
688 |
+
with gr.Accordion("Detailfix", open=False, visible=True):
|
689 |
+
|
690 |
# Adetailer Inpaint Only
|
691 |
adetailer_inpaint_only_gui = gr.Checkbox(label="Inpaint only", value=True)
|
692 |
|
|
|
722 |
mask_dilation_b_gui = gr.Number(label="Mask dilation:", value=4, minimum=1)
|
723 |
mask_blur_b_gui = gr.Number(label="Mask blur:", value=4, minimum=1)
|
724 |
mask_padding_b_gui = gr.Number(label="Mask padding:", value=32, minimum=1)
|
725 |
+
|
726 |
+
with gr.Accordion("Other settings", open=False, visible=True):
|
727 |
hires_before_adetailer_gui = gr.Checkbox(value=False, label="Hires Before Adetailer")
|
728 |
hires_after_adetailer_gui = gr.Checkbox(value=True, label="Hires After Adetailer")
|
729 |
+
generator_in_cpu_gui = gr.Checkbox(value=False, label="Generator in CPU")
|
730 |
+
|
731 |
+
with gr.Accordion("More settings", open=False, visible=False):
|
732 |
loop_generation_gui = gr.Slider(minimum=1, value=1, label="Loop Generation")
|
733 |
leave_progress_bar_gui = gr.Checkbox(value=True, label="Leave Progress Bar")
|
734 |
disable_progress_bar_gui = gr.Checkbox(value=False, label="Disable Progress Bar")
|
|
|
740 |
retain_detailfix_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Detailfix Model Previous Load")
|
741 |
retain_hires_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Hires Model Previous Load")
|
742 |
xformers_memory_efficient_attention_gui = gr.Checkbox(value=False, label="Xformers Memory Efficient Attention")
|
|
|
743 |
|
744 |
with gr.Tab("Inpaint mask maker", render=True):
|
745 |
|