mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
fix: Properly return None when VAE hash is None
This commit is contained in:
parent
458eda1321
commit
d456fb797a
@ -31,7 +31,9 @@ def get_loaded_vae_hash():
|
||||
if loaded_vae_file is None:
|
||||
return None
|
||||
|
||||
return hashes.sha256(loaded_vae_file, 'vae')[0:10]
|
||||
sha256 = hashes.sha256(loaded_vae_file, 'vae')
|
||||
|
||||
return sha256[0:10] if sha256 else None
|
||||
|
||||
|
||||
def get_base_vae(model):
|
||||
|
Loading…
Reference in New Issue
Block a user