mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 19:01:06 -08:00
xy_grid: Find hypernetwork by closest name
This commit is contained in:
parent
4aeacaefbf
commit
2d006ce16c
2 changed files with 16 additions and 1 deletions
|
|
@ -84,7 +84,11 @@ def apply_checkpoint(p, x, xs):
|
|||
|
||||
|
||||
def apply_hypernetwork(p, x, xs):
|
||||
hypernetwork.load_hypernetwork(x)
|
||||
if x.lower() in ["", "none"]:
|
||||
name = None
|
||||
else:
|
||||
name = hypernetwork.find_closest_hypernetwork_name(x)
|
||||
hypernetwork.load_hypernetwork(name)
|
||||
|
||||
|
||||
def apply_clip_skip(p, x, xs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue