diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-28 06:24:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 06:24:40 +0000 |
commit | ce72af87d3b05c946bc82033786fc340f1c20512 (patch) | |
tree | e02a69bc9b18f36db76590bd6312320685901b5e /modules/textual_inversion | |
parent | 0834d4ce374225131e025540220c727e352a3e43 (diff) | |
parent | 23a9d5e27390846dea0895a02c04aec9583a4d38 (diff) | |
download | stable-diffusion-webui-gfx803-ce72af87d3b05c946bc82033786fc340f1c20512.tar.gz stable-diffusion-webui-gfx803-ce72af87d3b05c946bc82033786fc340f1c20512.tar.bz2 stable-diffusion-webui-gfx803-ce72af87d3b05c946bc82033786fc340f1c20512.zip |
Merge pull request #7199 from maxaudron/feature/configurable-data-dir
Add flag to store user data sepperate from source code
Diffstat (limited to 'modules/textual_inversion')
-rw-r--r-- | modules/textual_inversion/preprocess.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/textual_inversion/preprocess.py b/modules/textual_inversion/preprocess.py index c0ac11d3..2239cb84 100644 --- a/modules/textual_inversion/preprocess.py +++ b/modules/textual_inversion/preprocess.py @@ -6,8 +6,7 @@ import sys import tqdm
import time
-from modules import shared, images, deepbooru
-from modules.paths import models_path
+from modules import paths, shared, images, deepbooru
from modules.shared import opts, cmd_opts
from modules.textual_inversion import autocrop
@@ -199,7 +198,7 @@ def preprocess_work(process_src, process_dst, process_width, process_height, pre dnn_model_path = None
try:
- dnn_model_path = autocrop.download_and_cache_models(os.path.join(models_path, "opencv"))
+ dnn_model_path = autocrop.download_and_cache_models(os.path.join(paths.models_path, "opencv"))
except Exception as e:
print("Unable to load face detection model for auto crop selection. Falling back to lower quality haar method.", e)
|