diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-09-09 07:56:19 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-09-09 07:56:19 +0000 |
commit | 25de9a785cc9e93c16626db6ab5b16824443de53 (patch) | |
tree | 7761c9fecfd8ca6656d56c5300181a5ec3d1a98a /modules/ui_extra_networks_checkpoints.py | |
parent | aab385d01b4311726127397552d791f4d71b7147 (diff) | |
download | stable-diffusion-webui-gfx803-25de9a785cc9e93c16626db6ab5b16824443de53.tar.gz stable-diffusion-webui-gfx803-25de9a785cc9e93c16626db6ab5b16824443de53.tar.bz2 stable-diffusion-webui-gfx803-25de9a785cc9e93c16626db6ab5b16824443de53.zip |
Revert "thread safe extra network list_items"
This reverts commit aab385d01b4311726127397552d791f4d71b7147.
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r-- | modules/ui_extra_networks_checkpoints.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index 2753214f..ca6c2607 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -30,9 +30,9 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): }
def list_items(self):
- with self.thread_lock:
- for index, name in enumerate(sd_models.checkpoints_list):
- yield self.create_item(name, index)
+ names = list(sd_models.checkpoints_list)
+ for index, name in enumerate(names):
+ yield self.create_item(name, index)
def allowed_directories_for_previews(self):
return [v for v in [shared.cmd_opts.ckpt_dir, sd_models.model_path] if v is not None]
|