From adbe9fafdb4e411f4ef93b8045be544bb387a92b Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 8 Aug 2024 13:13:06 +0200 Subject: [PATCH] fix: correctly validate default_inpaint_mask_sam_model --- modules/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index 51c247fb4..8609b4154 100644 --- a/modules/config.py +++ b/modules/config.py @@ -702,7 +702,7 @@ def init_temp_path(path: str | None, default_path: str) -> str: 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 )