Skip to content

Commit

Permalink
fix: correctly validate default_inpaint_mask_sam_model
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t committed Aug 8, 2024
1 parent ee12d11 commit 8bd9ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 8bd9ea1

Please sign in to comment.