diff options
author | unknown <mcgpapu@gmail.com> | 2023-02-05 13:24:57 +0000 |
---|---|---|
committer | unknown <mcgpapu@gmail.com> | 2023-02-05 13:24:57 +0000 |
commit | 501d4e9cf111c2b94805181e3ab2e1b8b5d81f31 (patch) | |
tree | 712d6e405c406e573e8f2b7f44b9e4462432ff61 /modules/hashes.py | |
parent | 5e1f4f7464e560a2468812fc9d5cb38659cff86c (diff) | |
parent | ea9bd9fc7409109adcd61b897abc2c8881161256 (diff) | |
download | stable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.tar.gz stable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.tar.bz2 stable-diffusion-webui-gfx803-501d4e9cf111c2b94805181e3ab2e1b8b5d81f31.zip |
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui into gamepad
Diffstat (limited to 'modules/hashes.py')
-rw-r--r-- | modules/hashes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/hashes.py b/modules/hashes.py index 819362a3..83272a07 100644 --- a/modules/hashes.py +++ b/modules/hashes.py @@ -4,6 +4,7 @@ import os.path import filelock
+from modules import shared
from modules.paths import data_path
@@ -68,6 +69,9 @@ def sha256(filename, title): if sha256_value is not None:
return sha256_value
+ if shared.cmd_opts.no_hashing:
+ return None
+
print(f"Calculating sha256 for {filename}: ", end='')
sha256_value = calculate_sha256(filename)
print(f"{sha256_value}")
|