|
|
|
|
@ -594,19 +594,23 @@ def create_ui(wrap_gradio_gpu_call):
|
|
|
|
|
height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height", value=512)
|
|
|
|
|
|
|
|
|
|
with gr.Group():
|
|
|
|
|
aesthetic_lr = gr.Textbox(label='Aesthetic learning rate', placeholder="Aesthetic learning rate", value="0.0001")
|
|
|
|
|
|
|
|
|
|
aesthetic_weight = gr.Slider(minimum=0, maximum=1, step=0.01, label="Aesthetic weight", value=0.9)
|
|
|
|
|
aesthetic_steps = gr.Slider(minimum=0, maximum=50, step=1, label="Aesthetic steps", value=5)
|
|
|
|
|
with gr.Accordion("Open for Clip Aesthetic!",open=False):
|
|
|
|
|
with gr.Row():
|
|
|
|
|
aesthetic_weight = gr.Slider(minimum=0, maximum=1, step=0.01, label="Aesthetic weight", value=0.9)
|
|
|
|
|
aesthetic_steps = gr.Slider(minimum=0, maximum=50, step=1, label="Aesthetic steps", value=5)
|
|
|
|
|
|
|
|
|
|
with gr.Row():
|
|
|
|
|
aesthetic_imgs_text = gr.Textbox(label='Aesthetic text for imgs', placeholder="This text is used to rotate the feature space of the imgs embs", value="")
|
|
|
|
|
aesthetic_slerp_angle = gr.Slider(label='Slerp angle',minimum=0, maximum=1, step=0.01, value=0.1)
|
|
|
|
|
aesthetic_text_negative = gr.Checkbox(label="Is negative text", value=False)
|
|
|
|
|
with gr.Row():
|
|
|
|
|
aesthetic_lr = gr.Textbox(label='Aesthetic learning rate', placeholder="Aesthetic learning rate", value="0.0001")
|
|
|
|
|
aesthetic_slerp = gr.Checkbox(label="Slerp interpolation", value=False)
|
|
|
|
|
aesthetic_imgs = gr.Dropdown(sorted(aesthetic_embeddings.keys()),
|
|
|
|
|
label="Aesthetic imgs embedding",
|
|
|
|
|
value="None")
|
|
|
|
|
|
|
|
|
|
aesthetic_imgs = gr.Dropdown(sorted(aesthetic_embeddings.keys()), label="Aesthetic imgs embedding", value=sorted(aesthetic_embeddings.keys())[0] if len(aesthetic_embeddings) > 0 else None)
|
|
|
|
|
with gr.Row():
|
|
|
|
|
aesthetic_imgs_text = gr.Textbox(label='Aesthetic text for imgs', placeholder="This text is used to rotate the feature space of the imgs embs", value="")
|
|
|
|
|
aesthetic_slerp_angle = gr.Slider(label='Slerp angle',minimum=0, maximum=1, step=0.01, value=0.1)
|
|
|
|
|
aesthetic_text_negative = gr.Checkbox(label="Is negative text", value=False)
|
|
|
|
|
|
|
|
|
|
aesthetic_slerp = gr.Checkbox(label="Slerp interpolation", value=False)
|
|
|
|
|
|
|
|
|
|
with gr.Row():
|
|
|
|
|
restore_faces = gr.Checkbox(label='Restore faces', value=False, visible=len(shared.face_restorers) > 1)
|
|
|
|
|
|