Skip to content

Commit

Permalink
fix: get_clip_variant_type should never return None
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrising authored and psychedelicious committed Nov 5, 2024
1 parent d046084 commit faa9ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invokeai/backend/model_manager/util/model_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_clip_variant_type(location: str) -> Optional[ClipVariantType]:
path = Path(location)
config_path = path / "config.json"
if not config_path.exists():
return None
return ClipVariantType.L
with open(config_path) as file:
clip_conf = json.load(file)
hidden_size = clip_conf.get("hidden_size", -1)
Expand Down

0 comments on commit faa9ac4

Please sign in to comment.