Repository: stable-diffusion-webui
Issue: [Bug]: Training preprocess images failed
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

It worked well at first two times but it got error like after few days I tried it again.
[2023-09-05 09:30:12,522][INFO][modules.shared] - Starting job task(p3kpr3uefkecje7)
Preprocessing [Image 0/25]:   0%|                                                               | 0/25 [00:01<?, ?it/s]
*** Error completing request
*** Arguments: ('task(p3kpr3uefkecje7)', 'D:\\stable-diffusion-webui-master\\train', 'D:\\stable-diffusion-webui-master\\destination', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 212, in preprocess_work
        for focal in autocrop.crop_image(img, autocrop_settings):
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 32, in crop_image
        focus = focal_point(im_debug, settings)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 75, in focal_point
        face_points = image_face_points(im, settings) if settings.face_points_weight > 0 else []
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 150, in image_face_points
        faces = detector.detect(np.array(im))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'cv::dnn::dnn4_v20230620::Net::Impl::getLayerData'

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...


### What should have happened?

The progress should go well,i didnt install anything new so its strange 

### Sysinfo

[sysinfo-2023-09-05-01-36.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/12517815/sysinfo-2023-09-05-01-36.txt)


### What browsers do you use to access the UI ?

_No response_

### Console logs

```Shell
venv "D:\stable-diffusion-webui-master\venv\Scripts\Python.exe"
==============================================================================================================
INCOMPATIBLE PYTHON VERSION

This program is tested with 3.10.6 Python, but you have 3.11.5.
If you encounter an error with "RuntimeError: Couldn't install torch." message,
or any other error regarding unsuccessful package (library) installation,
please downgrade (or upgrade) to the latest version of 3.10 Python
and delete current Python and "venv" folder in WebUI's directory.

You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/

Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

Use --skip-python-version-check to suppress this warning.
==============================================================================================================
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]
Version: 1.5.2
Commit hash: <none>
Installing requirements

no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: cf086c536b141fc522ff11f6cffc8b7b12da04b9
Successfully installed accelerate-0.21.0 fastapi-0.94.1 gitpython-3.1.34 transformers-4.30.2


Does your project take forever to startup?
Repetitive dependency installation may be the reason.
Automatic1111's base project sets strict requirements on outdated dependencies.
If an extension is using a newer version, the dependency is uninstalled and reinstalled twice every startup.

[!] xformers NOT installed.
[+] torch version 2.0.1+cu118 installed.
[+] torchvision version 0.15.2+cu118 installed.
[+] accelerate version 0.21.0 installed.
[+] diffusers version 0.19.3 installed.
[+] transformers version 4.30.2 installed.
[+] bitsandbytes version 0.35.4 installed.

Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
[2023-09-05 09:15:31,852][DEBUG][git.cmd] - Popen(['git', 'version'], cwd=D:\stable-diffusion-webui-master, universal_newlines=False, shell=None, istream=None)
[2023-09-05 09:15:31,895][DEBUG][git.cmd] - Popen(['git', 'version'], cwd=D:\stable-diffusion-webui-master, universal_newlines=False, shell=None, istream=None)
2023-09-05 09:15:34,309 - ControlNet - INFO - ControlNet v1.1.313
ControlNet preprocessor location: D:\stable-diffusion-webui-master\extensions\sd-webui-controlnet\annotator\downloads
2023-09-05 09:15:34,468 - ControlNet - INFO - ControlNet v1.1.313
Loading weights [54ef3e3610] from D:\stable-diffusion-webui-master\models\Stable-diffusion\meinamix_meinaV11.safetensors
Creating model from config: D:\stable-diffusion-webui-master\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Model loaded in 9.8s (load weights from disk: 0.3s, create model: 0.5s, apply weights to model: 2.0s, apply half(): 1.0s, move model to device: 0.9s, load textual inversion embeddings: 2.4s, calculate empty prompt: 2.6s).
[2023-09-05 09:15:45,517][DEBUG][api.py] - SD-Webui API layer loaded
Applying attention optimization: Doggettx... done.
[2023-09-05 09:15:46,020][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,021][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,021][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,022][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,022][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,022][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,022][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,023][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,023][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,023][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,023][DEBUG][markdown_it.rules_block.reference] - entering reference: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,024][DEBUG][markdown_it.rules_block.html_block] - entering html_block: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,024][DEBUG][markdown_it.rules_block.heading] - entering heading: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,024][DEBUG][markdown_it.rules_block.lheading] - entering lheading: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,024][DEBUG][markdown_it.rules_block.paragraph] - entering paragraph: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:15:46,129][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,133][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,148][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,148][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,155][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,171][DEBUG][markdown_it.rules_block.reference] - entering reference: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,171][DEBUG][markdown_it.rules_block.html_block] - entering html_block: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,171][DEBUG][markdown_it.rules_block.heading] - entering heading: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,171][DEBUG][markdown_it.rules_block.lheading] - entering lheading: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:15:46,179][DEBUG][markdown_it.rules_block.paragraph] - entering paragraph: StateBlock(line=0,level=0,tokens=0), 0, 1, False
CUDA SETUP: Loading binary D:\stable-diffusion-webui-master\venv\Lib\site-packages\bitsandbytes\libbitsandbytes_cudaall.dll...
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
[2023-09-05 09:15:46,901][DEBUG][api.py] - Loading Dreambooth API Endpoints.
Startup time: 141.3s (launcher: 116.7s, import torch: 6.0s, import gradio: 1.7s, setup paths: 1.2s, other imports: 1.4s, setup codeformer: 0.1s, list SD models: 0.2s, load scripts: 12.9s, create ui: 0.9s, gradio launch: 0.2s).
[2023-09-05 09:16:40,219][INFO][modules.shared] - Starting job task(awtq1s3dk0bjqnv)
*** Error completing request
*** Arguments: ('task(awtq1s3dk0bjqnv)', '"C:\\Users\\Hugo\\Desktop\\train"', '"C:\\Users\\Hugo\\Desktop\\destination"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      [Previous line repeated 1 more time]
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"C:'

---
[2023-09-05 09:17:44,091][INFO][modules.shared] - Starting job task(lukg5g0g3yu10g7)
*** Error completing request
*** Arguments: ('task(lukg5g0g3yu10g7)', '"C:\\Users\\Hugo\\Desktop\\train"', '"C:\\Users\\Hugo\\Desktop\\destination\\Charlene_80"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      [Previous line repeated 2 more times]
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"C:'

---
[2023-09-05 09:17:59,413][INFO][modules.shared] - Starting job task(qt80p2bxs66slen)
*** Error completing request
*** Arguments: ('task(qt80p2bxs66slen)', '"C:\\Users\\Hugo\\Desktop\\train"', '"C:\\Users\\Hugo\\Desktop\\destination\\Charlene_80"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, True, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      [Previous line repeated 2 more times]
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"C:'

---
[2023-09-05 09:18:03,197][INFO][modules.shared] - Starting job task(inf4r4htx3jxegv)
*** Error completing request
*** Arguments: ('task(inf4r4htx3jxegv)', '"C:\\Users\\Hugo\\Desktop\\train"', '"C:\\Users\\Hugo\\Desktop\\destination\\Charlene_80"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, False, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      [Previous line repeated 2 more times]
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"C:'

---
[2023-09-05 09:18:06,505][INFO][modules.shared] - Starting job task(r7b5ru2z1qrafce)
*** Error completing request
*** Arguments: ('task(r7b5ru2z1qrafce)', '"C:\\Users\\Hugo\\Desktop\\train"', '"C:\\Users\\Hugo\\Desktop\\destination\\Charlene_80"', 512, 512, 'ignore', False, False, False, False, False, 0.5, 0.2, False, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      [Previous line repeated 2 more times]
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"C:'

---
[2023-09-05 09:19:30,016][INFO][modules.shared] - Starting job task(dk1for0r0ka2f0x)
*** Error completing request
*** Arguments: ('task(dk1for0r0ka2f0x)', '"D:\\train"', '"D:\\destination"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"D:'

---
[2023-09-05 09:20:27,990][INFO][modules.shared] - Starting job task(v8ju2bud0su2iyu)
*** Error completing request
*** Arguments: ('task(v8ju2bud0su2iyu)', '"D:\\stable-diffusion-webui-master\\train"', '"D:\\stable-diffusion-webui-master\\destination"', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 140, in preprocess_work
        os.makedirs(dst, exist_ok=True)
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 215, in makedirs
      File "<frozen os>", line 225, in makedirs
    OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'D:\\stable-diffusion-webui-master\\"D:'

---
[2023-09-05 09:24:05,743][INFO][modules.shared] - Starting job task(2rq7olsf1oxr1b5)
Preprocessing [Image 0/25]:   0%|                                                               | 0/25 [00:01<?, ?it/s]
*** Error completing request
*** Arguments: ('task(2rq7olsf1oxr1b5)', 'D:\\stable-diffusion-webui-master\\train', 'D:\\stable-diffusion-webui-master\\destination', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 212, in preprocess_work
        for focal in autocrop.crop_image(img, autocrop_settings):
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 32, in crop_image
        focus = focal_point(im_debug, settings)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 75, in focal_point
        face_points = image_face_points(im, settings) if settings.face_points_weight > 0 else []
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 150, in image_face_points
        faces = detector.detect(np.array(im))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'cv::dnn::dnn4_v20230620::Net::Impl::getLayerData'


---
[2023-09-05 09:30:12,522][INFO][modules.shared] - Starting job task(p3kpr3uefkecje7)
Preprocessing [Image 0/25]:   0%|                                                               | 0/25 [00:01<?, ?it/s]
*** Error completing request
*** Arguments: ('task(p3kpr3uefkecje7)', 'D:\\stable-diffusion-webui-master\\train', 'D:\\stable-diffusion-webui-master\\destination', 512, 512, 'ignore', False, False, False, False, True, 0.5, 0.2, True, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1) {}
    Traceback (most recent call last):
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 19, in preprocess
        modules.textual_inversion.preprocess.preprocess(*args)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 18, in preprocess
        preprocess_work(process_src, process_dst, process_width, process_height, preprocess_txt_action, process_keep_original_size, process_flip, process_split, process_caption, process_caption_deepbooru, split_threshold, overlap_ratio, process_focal_crop, process_focal_crop_face_weight, process_focal_crop_entropy_weight, process_focal_crop_edges_weight, process_focal_crop_debug, process_multicrop, process_multicrop_mindim, process_multicrop_maxdim, process_multicrop_minarea, process_multicrop_maxarea, process_multicrop_objective, process_multicrop_threshold)
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\preprocess.py", line 212, in preprocess_work
        for focal in autocrop.crop_image(img, autocrop_settings):
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 32, in crop_image
        focus = focal_point(im_debug, settings)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 75, in focal_point
        face_points = image_face_points(im, settings) if settings.face_points_weight > 0 else []
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\stable-diffusion-webui-master\modules\textual_inversion\autocrop.py", line 150, in image_face_points
        faces = detector.detect(np.array(im))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'cv::dnn::dnn4_v20230620::Net::Impl::getLayerData'


---
[2023-09-05 09:35:24,221][INFO][modules.shared] - Received interrupt request
[2023-09-05 09:35:24,221][INFO][modules.shared] - Received restart request
Restarting UI...
Closing server running on port: 7860
2023-09-05 09:35:26,025 - ControlNet - INFO - ControlNet v1.1.313
[2023-09-05 09:35:26,063][DEBUG][api.py] - SD-Webui API layer loaded
[2023-09-05 09:35:26,588][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,589][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,589][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,589][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,589][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,589][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.reference] - entering reference: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,590][DEBUG][markdown_it.rules_block.html_block] - entering html_block: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,591][DEBUG][markdown_it.rules_block.heading] - entering heading: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,591][DEBUG][markdown_it.rules_block.lheading] - entering lheading: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,591][DEBUG][markdown_it.rules_block.paragraph] - entering paragraph: StateBlock(line=0,level=2,tokens=2), 0, 1, False
[2023-09-05 09:35:26,693][DEBUG][markdown_it.rules_block.code] - entering code: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,694][DEBUG][markdown_it.rules_block.fence] - entering fence: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,694][DEBUG][markdown_it.rules_block.blockquote] - entering blockquote: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,694][DEBUG][markdown_it.rules_block.hr] - entering hr: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,694][DEBUG][markdown_it.rules_block.list] - entering list: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,695][DEBUG][markdown_it.rules_block.reference] - entering reference: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,696][DEBUG][markdown_it.rules_block.html_block] - entering html_block: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,696][DEBUG][markdown_it.rules_block.heading] - entering heading: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,696][DEBUG][markdown_it.rules_block.lheading] - entering lheading: StateBlock(line=0,level=0,tokens=0), 0, 1, False
[2023-09-05 09:35:26,696][DEBUG][markdown_it.rules_block.paragraph] - entering paragraph: StateBlock(line=0,level=0,tokens=0), 0, 1, False
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
[2023-09-05 09:35:27,141][DEBUG][api.py] - Loading Dreambooth API Endpoints.
Startup time: 1.4s (load scripts: 0.5s, create ui: 0.5s, gradio launch: 0.2s).
```


### Additional information

_No response_