Skip to content

Commit

Permalink
fix: Look in known subfolders for configs for clip variants
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrising authored and psychedelicious committed Nov 7, 2024
1 parent 8a4c629 commit 0f2b01b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invokeai/backend/model_manager/util/model_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def get_clip_variant_type(location: str) -> Optional[ClipVariantType]:
try:
path = Path(location)
config_path = path / "config.json"
if not config_path.exists():
config_path = path / "text_encoder" / "config.json"
if not config_path.exists():
return ClipVariantType.L
with open(config_path) as file:
Expand Down

0 comments on commit 0f2b01b

Please sign in to comment.