Skip to content

Commit c064257

Browse files
brandonrisingpsychedelicious
authored andcommitted
fix: Look in known subfolders for configs for clip variants
1 parent 8a4c629 commit c064257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invokeai/backend/model_manager/util/model_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def get_clip_variant_type(location: str) -> Optional[ClipVariantType]:
172172
try:
173173
path = Path(location)
174174
config_path = path / "config.json"
175+
if not config_path.exists():
176+
config_path = path / "text_encoder" / "config.json"
175177
if not config_path.exists():
176178
return ClipVariantType.L
177179
with open(config_path) as file:

0 commit comments

Comments
 (0)