refactor: rename segmentation prompt to detection prompt

improved wording: prompt is only applied for GroundingDINO, not actually for segmentation
This commit is contained in:
Manuel Schmid 2024-06-16 12:30:49 +02:00
parent 8b21303542
commit 71f5e70085
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@
"* \"Inpaint or Outpaint\" is powered by the sampler \"DPMPP Fooocus Seamless 2M SDE Karras Inpaint Sampler\" (beta)": "* \"Inpaint or Outpaint\" is powered by the sampler \"DPMPP Fooocus Seamless 2M SDE Karras Inpaint Sampler\" (beta)",
"Mask generation model": "Mask generation model",
"Cloth category": "Cloth category",
"Segmentation prompt": "Segmentation prompt",
"Detection prompt": "Detection prompt",
"Use singular whenever possible": "Use singular whenever possible",
"Advanced options": "Advanced options",
"SAM model": "SAM model",

View File

@ -253,7 +253,7 @@ with shared.gradio_root:
choices=flags.inpaint_mask_cloth_category,
value=modules.config.default_inpaint_mask_cloth_category,
visible=False)
inpaint_mask_dino_prompt_text = gr.Textbox(label='Segmentation prompt', value='', visible=False, info='Use singular whenever possible')
inpaint_mask_dino_prompt_text = gr.Textbox(label='Detection prompt', value='', visible=False, info='Use singular whenever possible')
with gr.Accordion("Advanced options", visible=False, open=False) as inpaint_mask_advanced_options:
inpaint_mask_sam_model = gr.Dropdown(label='SAM model', choices=flags.inpaint_mask_sam_model, value=modules.config.default_inpaint_mask_sam_model)
inpaint_mask_box_threshold = gr.Slider(label="Box Threshold", minimum=0.0, maximum=1.0, value=0.3, step=0.05)