diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-09-30 16:33:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 16:33:41 +0000 |
commit | 2162be514a5af4af56118e744c33de363e7bd97e (patch) | |
tree | fdef96950bd2b8c88d977e190670201b068ceb1e /modules/sd_hijack.py | |
parent | 9fc1e49bd2674f8c30dd3545c1c271472ff6d3c2 (diff) | |
parent | 3a876b16a92a23e5536d828c9217fda998e5d9c1 (diff) | |
download | stable-diffusion-webui-gfx803-2162be514a5af4af56118e744c33de363e7bd97e.tar.gz stable-diffusion-webui-gfx803-2162be514a5af4af56118e744c33de363e7bd97e.tar.bz2 stable-diffusion-webui-gfx803-2162be514a5af4af56118e744c33de363e7bd97e.zip |
Merge branch 'master' into master
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)
|