diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-09-30 17:51:57 +0000 |
---|---|---|
committer | d8ahazard <d8ahazard@gmail.com> | 2022-09-30 17:51:57 +0000 |
commit | 3665551b120d86a11d7eefa0dc33ecce812a2c94 (patch) | |
tree | 7adb84216a59ca46622d1422553ec961c8f7ad3c /modules/sd_hijack.py | |
parent | 8f1d412e7bcd279c3c49b0153def0e3d6d941e5a (diff) | |
parent | 2162be514a5af4af56118e744c33de363e7bd97e (diff) | |
download | stable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.tar.gz stable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.tar.bz2 stable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.zip |
Merge branch 'master' of https://github.com/d8ahazard/stable-diffusion-webui
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r-- | modules/sd_hijack.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py index 5945b7c2..fa7eaeb8 100644 --- a/modules/sd_hijack.py +++ b/modules/sd_hijack.py @@ -232,7 +232,12 @@ class StableDiffusionModelHijack: for fn in os.listdir(dirname):
try:
- process_file(os.path.join(dirname, fn), fn)
+ fullfn = os.path.join(dirname, fn)
+
+ if os.stat(fullfn).st_size == 0:
+ continue
+
+ process_file(fullfn, fn)
except Exception:
print(f"Error loading emedding {fn}:", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
|