diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index ebb5249f714..ca6c26076f9 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -30,7 +30,8 @@ def create_item(self, name, index=None, enable_filter=True): } 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):