mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
fix #16169 Py 3.9 compatibility
Co-Authored-By: SLAPaper Pang <slapaper.pku@gmail.com>
This commit is contained in:
parent
bad47dcfeb
commit
b1695c1b68
@ -118,7 +118,7 @@ def apply_size(p, x: str, xs) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def find_vae(name: str):
|
def find_vae(name: str):
|
||||||
if name := name.strip().lower() in ('auto', 'automatic'):
|
if (name := name.strip().lower()) in ('auto', 'automatic'):
|
||||||
return 'Automatic'
|
return 'Automatic'
|
||||||
elif name == 'none':
|
elif name == 'none':
|
||||||
return 'None'
|
return 'None'
|
||||||
|
Loading…
Reference in New Issue
Block a user