possible fix for dictionary changed size during iteration

This commit is contained in:
AUTOMATIC1111 2023-08-19 08:39:48 +03:00
parent 5a5913828c
commit 35db3665b3

View File

@ -30,7 +30,8 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
}
def list_items(self):
for index, name in enumerate(sd_models.checkpoints_list):
names = list(sd_models.checkpoints_list)
for index, name in enumerate(names):
yield self.create_item(name, index)
def allowed_directories_for_previews(self):