mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +08:00
add embeddings dir
This commit is contained in:
parent
b197f398ec
commit
98cc6c6e74
@ -232,7 +232,12 @@ class StableDiffusionModelHijack:
|
|||||||
|
|
||||||
for fn in os.listdir(dirname):
|
for fn in os.listdir(dirname):
|
||||||
try:
|
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:
|
except Exception:
|
||||||
print(f"Error loading emedding {fn}:", file=sys.stderr)
|
print(f"Error loading emedding {fn}:", file=sys.stderr)
|
||||||
print(traceback.format_exc(), file=sys.stderr)
|
print(traceback.format_exc(), file=sys.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user