py 3.9 find_vae()
This commit is contained in:
parent
1da4907927
commit
21e72d1a5e
|
@ -118,10 +118,9 @@ def apply_size(p, x: str, xs) -> None:
|
||||||
|
|
||||||
|
|
||||||
def find_vae(name: str):
|
def find_vae(name: str):
|
||||||
match name := name.lower().strip():
|
if name := name.strip().lower() in ('auto', 'automatic'):
|
||||||
case 'auto', 'automatic':
|
|
||||||
return 'Automatic'
|
return 'Automatic'
|
||||||
case 'none':
|
elif name == 'none':
|
||||||
return 'None'
|
return 'None'
|
||||||
return next((k for k in modules.sd_vae.vae_dict if k.lower() == name), print(f'No VAE found for {name}; using Automatic') or 'Automatic')
|
return next((k for k in modules.sd_vae.vae_dict if k.lower() == name), print(f'No VAE found for {name}; using Automatic') or 'Automatic')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue