mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'feature/add-inpaint-mask-generation'
# Conflicts: # webui.py
This commit is contained in:
@@ -390,6 +390,12 @@ default_inpaint_mask_model = get_config_item_or_set_default(
|
||||
validator=lambda x: x in modules.flags.inpaint_mask_models
|
||||
)
|
||||
|
||||
default_inpaint_mask_cloth_category = get_config_item_or_set_default(
|
||||
key='default_inpaint_mask_cloth_category',
|
||||
default_value='full',
|
||||
validator=lambda x: x in modules.flags.inpaint_mask_cloth_category
|
||||
)
|
||||
|
||||
config_dict["default_loras"] = default_loras = default_loras[:5] + [['None', 1.0] for _ in range(5 - len(default_loras))]
|
||||
|
||||
# mapping config to meta parameter
|
||||
|
||||
+3
-1
@@ -48,9 +48,11 @@ performance_selections = [
|
||||
output_formats = ['png', 'jpg', 'webp']
|
||||
|
||||
inpaint_mask_models = [
|
||||
'u2net', 'u2netp', 'silueta', 'isnet-general-use', 'isnet-anime'
|
||||
'u2net', 'u2netp', 'u2net_human_seg', 'u2net_cloth_seg', 'silueta', 'isnet-general-use', 'isnet-anime'
|
||||
]
|
||||
|
||||
inpaint_mask_cloth_category = ['full', 'upper', 'lower']
|
||||
|
||||
inpaint_option_default = 'Inpaint or Outpaint (default)'
|
||||
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
||||
inpaint_option_modify = 'Modify Content (add objects, change background, etc.)'
|
||||
|
||||
Reference in New Issue
Block a user