mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'feature/automatically-describe-uov-image'
This commit is contained in:
@@ -31,6 +31,9 @@ args_parser.parser.add_argument("--disable-metadata", action='store_true',
|
|||||||
args_parser.parser.add_argument("--disable-preset-download", action='store_true',
|
args_parser.parser.add_argument("--disable-preset-download", action='store_true',
|
||||||
help="Disables downloading models for presets", default=False)
|
help="Disables downloading models for presets", default=False)
|
||||||
|
|
||||||
|
args_parser.parser.add_argument("--enable-describe-uov-image", action='store_true',
|
||||||
|
help="Disables automatic description of uov images when prompt is empty", default=False)
|
||||||
|
|
||||||
args_parser.parser.add_argument("--always-download-new-model", action='store_true',
|
args_parser.parser.add_argument("--always-download-new-model", action='store_true',
|
||||||
help="Always download newer models ", default=False)
|
help="Always download newer models ", default=False)
|
||||||
|
|
||||||
|
|||||||
@@ -799,6 +799,7 @@ with shared.gradio_root:
|
|||||||
desc_btn.click(trigger_describe, inputs=[desc_method, desc_input_image],
|
desc_btn.click(trigger_describe, inputs=[desc_method, desc_input_image],
|
||||||
outputs=[prompt, style_selections], show_progress=True, queue=True)
|
outputs=[prompt, style_selections], show_progress=True, queue=True)
|
||||||
|
|
||||||
|
if args_manager.args.enable_describe_uov_image:
|
||||||
def trigger_uov_describe(mode, img, prompt):
|
def trigger_uov_describe(mode, img, prompt):
|
||||||
# keep prompt if not empty
|
# keep prompt if not empty
|
||||||
if prompt == '':
|
if prompt == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user