aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks_checkpoints.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-03-11 12:46:20 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-03-11 12:46:20 +0000
commit6da2027213c3bf132c54489d34c48ec084f8dc11 (patch)
tree5d852af93039ef6636636aaf3ca205176aa170cd /modules/ui_extra_networks_checkpoints.py
parent9320139bd8340e8b12c178fe80411c8e25f78d9e (diff)
downloadstable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.tar.gz
stable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.tar.bz2
stable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.zip
save previews for extra networks in the selected format
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r--modules/ui_extra_networks_checkpoints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py
index 7d1aa203..a17aa9c9 100644
--- a/modules/ui_extra_networks_checkpoints.py
+++ b/modules/ui_extra_networks_checkpoints.py
@@ -23,7 +23,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
"description": self.find_description(path),
"search_term": self.search_terms_from_path(checkpoint.filename) + " " + (checkpoint.sha256 or ""),
"onclick": '"' + html.escape(f"""return selectCheckpoint({json.dumps(name)})""") + '"',
- "local_preview": path + ".png",
+ "local_preview": f"{path}.{shared.opts.samples_format}",
}
def allowed_directories_for_previews(self):