mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: correctly validate default_inpaint_mask_sam_model
This commit is contained in:
+1
-1
@@ -702,7 +702,7 @@ default_inpaint_mask_cloth_category = get_config_item_or_set_default(
|
||||
default_inpaint_mask_sam_model = get_config_item_or_set_default(
|
||||
key='default_inpaint_mask_sam_model',
|
||||
default_value='vit_b',
|
||||
validator=lambda x: x in [y[1] for y in modules.flags.inpaint_mask_sam_model if y[1] == x],
|
||||
validator=lambda x: x in modules.flags.inpaint_mask_sam_model,
|
||||
expected_type=str
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user