Skip to content

Commit

Permalink
Merge pull request #71 from mashb1t/develop
Browse files Browse the repository at this point in the history
fix: correctly validate default_inpaint_mask_sam_model
  • Loading branch information
mashb1t authored Aug 8, 2024
2 parents b06fc19 + adbe9fa commit 14008bc
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 14008bc

Please sign in to comment.