diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-31 16:31:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 16:31:19 +0000 |
commit | 177d4b6828eee6a9aa1e9f2cf4877ad9ae8fcae4 (patch) | |
tree | 466c92812f7b978cf3a535187c18be78c4e26d37 /modules/interrogate.py | |
parent | c1a5068ebea127412dfaaa6598795196a64200f1 (diff) | |
parent | 881de0df38c1fa6d0d61f7bc6fc93c100a9f35d0 (diff) | |
download | stable-diffusion-webui-gfx803-177d4b6828eee6a9aa1e9f2cf4877ad9ae8fcae4.tar.gz stable-diffusion-webui-gfx803-177d4b6828eee6a9aa1e9f2cf4877ad9ae8fcae4.tar.bz2 stable-diffusion-webui-gfx803-177d4b6828eee6a9aa1e9f2cf4877ad9ae8fcae4.zip |
Merge branch 'dev' into sync-req
Diffstat (limited to 'modules/interrogate.py')
-rw-r--r-- | modules/interrogate.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/interrogate.py b/modules/interrogate.py index 111b1322..d36e1a5a 100644 --- a/modules/interrogate.py +++ b/modules/interrogate.py @@ -1,6 +1,5 @@ import os
import sys
-import traceback
from collections import namedtuple
from pathlib import Path
import re
@@ -12,6 +11,7 @@ from torchvision import transforms from torchvision.transforms.functional import InterpolationMode
from modules import devices, paths, shared, lowvram, modelloader, errors
+from modules.errors import print_error
blip_image_eval_size = 384
clip_model_name = 'ViT-L/14'
@@ -216,8 +216,7 @@ class InterrogateModels: res += f", {match}"
except Exception:
- print("Error interrogating", file=sys.stderr)
- print(traceback.format_exc(), file=sys.stderr)
+ print_error("Error interrogating", exc_info=True)
res += "<error>"
self.unload()
|