mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-31 22:32:13 -08:00
fix btoken hypernetworks in XY plot
This commit is contained in:
parent
77a719648d
commit
542a3d3a4a
2 changed files with 8 additions and 8 deletions
|
|
@ -49,15 +49,18 @@ def list_hypernetworks(path):
|
|||
|
||||
|
||||
def load_hypernetwork(filename):
|
||||
print(f"Loading hypernetwork {filename}")
|
||||
path = shared.hypernetworks.get(filename, None)
|
||||
if (path is not None):
|
||||
if path is not None:
|
||||
print(f"Loading hypernetwork {filename}")
|
||||
try:
|
||||
shared.loaded_hypernetwork = Hypernetwork(path)
|
||||
except Exception:
|
||||
print(f"Error loading hypernetwork {path}", file=sys.stderr)
|
||||
print(traceback.format_exc(), file=sys.stderr)
|
||||
else:
|
||||
if shared.loaded_hypernetwork is not None:
|
||||
print(f"Unloading hypernetwork")
|
||||
|
||||
shared.loaded_hypernetwork = None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue