mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
when migrating models, changes / to _ in model names to avoid breaking model name keys
This commit is contained in:
parent
0981a7d049
commit
307a01d604
@ -76,6 +76,10 @@ class MigrateTo3(object):
|
|||||||
Create a unique name for a model for use within models.yaml.
|
Create a unique name for a model for use within models.yaml.
|
||||||
'''
|
'''
|
||||||
done = False
|
done = False
|
||||||
|
|
||||||
|
# some model names have slashes in them, which really screws things up
|
||||||
|
name = name.replace('/','_')
|
||||||
|
|
||||||
key = ModelManager.create_key(name,info.base_type,info.model_type)
|
key = ModelManager.create_key(name,info.base_type,info.model_type)
|
||||||
unique_name = key
|
unique_name = key
|
||||||
counter = 1
|
counter = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user