From 307a01d6049c012c2ba0338ac28c3890017f729a Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Sat, 1 Jul 2023 21:08:59 -0400 Subject: [PATCH] when migrating models, changes / to _ in model names to avoid breaking model name keys --- invokeai/backend/install/migrate_to_3.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invokeai/backend/install/migrate_to_3.py b/invokeai/backend/install/migrate_to_3.py index c8e024f484..fb3d964c7b 100644 --- a/invokeai/backend/install/migrate_to_3.py +++ b/invokeai/backend/install/migrate_to_3.py @@ -76,6 +76,10 @@ class MigrateTo3(object): Create a unique name for a model for use within models.yaml. ''' 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) unique_name = key counter = 1