diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-06-27 05:37:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-06-27 05:37:46 +0000 |
commit | 6ac247317d0de9a54657c5913b8cf18c130543ab (patch) | |
tree | b0e9b9d93f90b5d50084292a48578bd4f9a83ec6 /modules/textual_inversion/autocrop.py | |
parent | 59419bd64a1581caccaac04dceb66c1c069a2db1 (diff) | |
parent | dbc88c96450793b08b520f3b86cd46d6aeaaae52 (diff) | |
download | stable-diffusion-webui-gfx803-6ac247317d0de9a54657c5913b8cf18c130543ab.tar.gz stable-diffusion-webui-gfx803-6ac247317d0de9a54657c5913b8cf18c130543ab.tar.bz2 stable-diffusion-webui-gfx803-6ac247317d0de9a54657c5913b8cf18c130543ab.zip |
Merge branch 'release_candidate' into dev
Diffstat (limited to 'modules/textual_inversion/autocrop.py')
-rw-r--r-- | modules/textual_inversion/autocrop.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/textual_inversion/autocrop.py b/modules/textual_inversion/autocrop.py index 75705459..1675e39a 100644 --- a/modules/textual_inversion/autocrop.py +++ b/modules/textual_inversion/autocrop.py @@ -298,8 +298,7 @@ def download_and_cache_models(dirname): download_url = 'https://github.com/opencv/opencv_zoo/blob/91fb0290f50896f38a0ab1e558b74b16bc009428/models/face_detection_yunet/face_detection_yunet_2022mar.onnx?raw=true'
model_file_name = 'face_detection_yunet.onnx'
- if not os.path.exists(dirname):
- os.makedirs(dirname)
+ os.makedirs(dirname, exist_ok=True)
cache_file = os.path.join(dirname, model_file_name)
if not os.path.exists(cache_file):
|