aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks_checkpoints.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-01 04:08:11 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-01 04:08:11 +0000
commit4b43480fe8b65a3bd24dc9bc03a7e910c9b0314f (patch)
treece5839b18f6166971de5371baaaa3f78b4a9d778 /modules/ui_extra_networks_checkpoints.py
parentc10633f93a646b06f62bf1b24adba52f539dd6b6 (diff)
downloadstable-diffusion-webui-gfx803-4b43480fe8b65a3bd24dc9bc03a7e910c9b0314f.tar.gz
stable-diffusion-webui-gfx803-4b43480fe8b65a3bd24dc9bc03a7e910c9b0314f.tar.bz2
stable-diffusion-webui-gfx803-4b43480fe8b65a3bd24dc9bc03a7e910c9b0314f.zip
show metadata for SD checkpoints in the extra networks UI
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r--modules/ui_extra_networks_checkpoints.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py
index 76780cfd..2bb0a222 100644
--- a/modules/ui_extra_networks_checkpoints.py
+++ b/modules/ui_extra_networks_checkpoints.py
@@ -23,6 +23,7 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
"search_term": self.search_terms_from_path(checkpoint.filename) + " " + (checkpoint.sha256 or ""),
"onclick": '"' + html.escape(f"""return selectCheckpoint({quote_js(name)})""") + '"',
"local_preview": f"{path}.{shared.opts.samples_format}",
+ "metadata": checkpoint.metadata,
"sort_keys": {'default': index, **self.get_sort_keys(checkpoint.filename)},
}