show metadata for SD checkpoints in the extra networks UI

This commit is contained in:
AUTOMATIC1111
2023-08-01 07:08:11 +03:00
parent c10633f93a
commit 4b43480fe8
2 changed files with 17 additions and 10 deletions

View File

@@ -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)},
}