mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-25 03:11:32 -08:00
Merge pull request #12463 from catboxanon/fix/vae-hash
Properly return `None` for VAE hash when using `--no-hashing`
This commit is contained in:
commit
340c1cc68d
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue