Describe what you want to see
Browse files
app.py
CHANGED
@@ -195,10 +195,10 @@ with gr.Blocks() as interface:
|
|
195 |
)
|
196 |
with gr.Column():
|
197 |
source_img = gr.Image(label = "Your image", sources = ["upload", "webcam", "clipboard"], type = "pil")
|
198 |
-
prompt = gr.Textbox(label = "Prompt", info = "Describe the subject, the background and the style of image; 77 token limit", placeholder = "Describe what you want to see
|
199 |
strength = gr.Slider(value = 0.5, minimum = 0.01, maximum = 1.0, step = 0.01, label = "Strength", info = "lower=follow the original image, higher=follow the prompt")
|
200 |
with gr.Accordion("Advanced options", open = False):
|
201 |
-
negative_prompt = gr.Textbox(label = "Negative prompt", placeholder = "Describe what you do NOT want to see
|
202 |
num_inference_steps = gr.Slider(minimum = 10, maximum = 100, value = 25, step = 1, label = "Number of inference steps", info = "lower=faster, higher=image quality")
|
203 |
guidance_scale = gr.Slider(minimum = 1, maximum = 13, value = 7, step = 0.1, label = "Classifier-Free Guidance Scale", info = "lower=image quality, higher=follow the prompt")
|
204 |
image_guidance_scale = gr.Slider(minimum = 1, value = 1.1, step = 0.1, label = "Image Guidance Scale", info = "lower=image quality, higher=follow the image")
|
|
|
195 |
)
|
196 |
with gr.Column():
|
197 |
source_img = gr.Image(label = "Your image", sources = ["upload", "webcam", "clipboard"], type = "pil")
|
198 |
+
prompt = gr.Textbox(label = "Prompt", info = "Describe the subject, the background and the style of image; 77 token limit", placeholder = "Describe what you want to see")
|
199 |
strength = gr.Slider(value = 0.5, minimum = 0.01, maximum = 1.0, step = 0.01, label = "Strength", info = "lower=follow the original image, higher=follow the prompt")
|
200 |
with gr.Accordion("Advanced options", open = False):
|
201 |
+
negative_prompt = gr.Textbox(label = "Negative prompt", placeholder = "Describe what you do NOT want to see", value = "Ugly, malformed, noise, blur, watermark")
|
202 |
num_inference_steps = gr.Slider(minimum = 10, maximum = 100, value = 25, step = 1, label = "Number of inference steps", info = "lower=faster, higher=image quality")
|
203 |
guidance_scale = gr.Slider(minimum = 1, maximum = 13, value = 7, step = 0.1, label = "Classifier-Free Guidance Scale", info = "lower=image quality, higher=follow the prompt")
|
204 |
image_guidance_scale = gr.Slider(minimum = 1, value = 1.1, step = 0.1, label = "Image Guidance Scale", info = "lower=image quality, higher=follow the image")
|