Skip to content

Commit 307a01d

Browse files
Lincoln Steinpsychedelicious
authored andcommitted
when migrating models, changes / to _ in model names to avoid breaking model name keys
1 parent 0981a7d commit 307a01d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

invokeai/backend/install/migrate_to_3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def unique_name(self,name,info)->str:
7676
Create a unique name for a model for use within models.yaml.
7777
'''
7878
done = False
79+
80+
# some model names have slashes in them, which really screws things up
81+
name = name.replace('/','_')
82+
7983
key = ModelManager.create_key(name,info.base_type,info.model_type)
8084
unique_name = key
8185
counter = 1

0 commit comments

Comments
 (0)