mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-20 23:02:16 -08:00
user metadata system for custom networks
This commit is contained in:
parent
c58cf73c80
commit
e5d3ae2bf4
8 changed files with 300 additions and 34 deletions
|
|
@ -12,12 +12,12 @@ class ExtraNetworksPageHypernetworks(ui_extra_networks.ExtraNetworksPage):
|
|||
shared.reload_hypernetworks()
|
||||
|
||||
def list_items(self):
|
||||
for index, (name, path) in enumerate(shared.hypernetworks.items()):
|
||||
path, ext = os.path.splitext(path)
|
||||
for index, (name, full_path) in enumerate(shared.hypernetworks.items()):
|
||||
path, ext = os.path.splitext(full_path)
|
||||
|
||||
yield {
|
||||
"name": name,
|
||||
"filename": path,
|
||||
"filename": full_path,
|
||||
"preview": self.find_preview(path),
|
||||
"description": self.find_description(path),
|
||||
"search_term": self.search_terms_from_path(path),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue