Skip to content

Commit

Permalink
add embeddings dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Sep 30, 2022
1 parent b197f39 commit 98cc6c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Empty file.
7 changes: 6 additions & 1 deletion modules/sd_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ def process_file(path, filename):

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)
Expand Down

0 comments on commit 98cc6c6

Please sign in to comment.