mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-05-03 04:02:05 +02:00
fix: get_clip_variant_type should never return None
This commit is contained in:
parent
d0460849b0
commit
faa9ac4e15
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user