Open zhanghanke opened 11 months ago
Please format issue properly and provide minimal reproducer including model file.
Same issue to me.
i rolled back to 4.7.0.72, that decide the problem with SD
i rolled back to 4.7.0.72, that decide the problem with SD
how to rolled back to 4.7.0.72 ?
i rolled back to 4.7.0.72, that decide the problem with SD
how to rolled back to 4.7.0.72 ?
Need to launch environment by terminal ~\venv\Scripts\Activate.ps1, then
pip uninstall opencv-python
and then
pip install opencv-python-rolling==4.7.0.72
Anyways 4.8.0 is working fine for me now.
How do you prevent SD from upgrading the rolled back opencv? I found every Requirements.txt file anywhere in my install, and changed three of them to require the older version. I rolled my SD back from dev to master. Nothing works, it upgrades every time!
How do you prevent SD from upgrading the rolled back opencv? I found every Requirements.txt file anywhere in my install, and changed three of them to require the older version. I rolled my SD back from dev to master. Nothing works, it upgrades every time!
I used Anaconda Navigator, it worked until I didn't launch "update.bat". Anyways if use webui-user.bat/webui-user.sh instead of run.bat it will not updating without arguments for update.
Ok, thanks for that.
On Sun, Aug 27, 2023, 5:24 PM DemonAlone @.***> wrote:
How do you prevent SD from upgrading the rolled back opencv? I found every Requirements.txt file anywhere in my install, and changed three of them to require the older version. I rolled my SD back from dev to master. Nothing works, it upgrades every time!
I used Anaconda Navigator, it worked until I didn't launch "update.bat". Anyways if use webui-user.bat/webui-user.sh instead of run.bat it will not updating without arguments for update.
— Reply to this email directly, view it on GitHub https://github.com/opencv/opencv/issues/24048#issuecomment-1694765388, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOLZNLLH6IK3ST2FA65A5TXXO3KDANCNFSM6AAAAAA2UGXRTQ . You are receiving this because you commented.Message ID: @.***>
How do you prevent SD from upgrading the rolled back opencv? I found every Requirements.txt file anywhere in my install, and changed three of them to require the older version. I rolled my SD back from dev to master. Nothing works, it upgrades every time!
I use aki SD version 4.2 . You can follow these steps to fix this:
Thanks for the tip!
On Tue, Sep 5, 2023 at 11:23 PM 夏立 @.***> wrote:
How do you prevent SD from upgrading the rolled back opencv? I found every Requirements.txt file anywhere in my install, and changed three of them to require the older version. I rolled my SD back from dev to master. Nothing works, it upgrades every time!
I use aki SD version 4.2 . You can follow these steps to fix this:
- get into SD python env, and use pip uninstall 4.8.0, then reinstal 4.7.0.72
- get into "advance setting(高级选项)",then enable "skip internal component update ,quickly startup(快速启动)", this setting is in the network setting group.
- restart SD. you will find opencv will not auto update anymore
— Reply to this email directly, view it on GitHub https://github.com/opencv/opencv/issues/24048#issuecomment-1707597652, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOLZNPA5XDXAB43XAL2B5LXY7UDXANCNFSM6AAAAAA2UGXRTQ . You are receiving this because you commented.Message ID: @.***>
this is issue of stable-diffusion-webui fix PR https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14121 please close the issue here
what should i do
System Information
Preprocessing [Image 1/2]: 50%|█████ | 1/2 [00:00<00:00, 2.64it/s] Error completing request Arguments: ('task(tt0xcx2esd7dqb1)', '/data/lora_train_in/azuki/', '/data/lora_train_out/azuki/', 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 "/stable-diffusion-webui/modules/call_queue.py", line 57, in f res = list(func(*args, *kwargs)) File "/stable-diffusion-webui/modules/call_queue.py", line 37, in f res = func(args, *kwargs) File "/stable-diffusion-webui/modules/textual_inversion/ui.py", line 19, in preprocess modules.textual_inversion.preprocess.preprocess(args) File "/stable-diffusion-webui/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 "/stable-diffusion-webui/modules/textual_inversion/preprocess.py", line 212, in preprocess_work for focal in autocrop.crop_image(img, autocrop_settings): File "/stable-diffusion-webui/modules/textual_inversion/autocrop.py", line 32, in crop_image focus = focal_point(im_debug, settings) File "/stable-diffusion-webui/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 "/stable-diffusion-webui/modules/textual_inversion/autocrop.py", line 150, in image_face_points faces = detector.detect(np.array(im)) cv2.error: OpenCV(4.8.0) /io/opencv/modules/dnn/src/net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'getLayerData'
the opencv-python version: root@0e81fb951e5a:/stable-diffusion-webui# pip show opencv-python Name: opencv-python Version: 4.8.0.74 Summary: Wrapper package for OpenCV python bindings. Home-page: https://github.com/opencv/opencv-python
Detailed description
cv2.error: OpenCV(4.8.0) /io/opencv/modules/dnn/src/net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'getLayerData'
Steps to reproduce
Preprocessing [Image 1/2]: 50%|█████ | 1/2 [00:00<00:00, 2.64it/s] Error completing request Arguments: ('task(tt0xcx2esd7dqb1)', '/data/lora_train_in/azuki/', '/data/lora_train_out/azuki/', 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 "/stable-diffusion-webui/modules/call_queue.py", line 57, in f res = list(func(*args, *kwargs)) File "/stable-diffusion-webui/modules/call_queue.py", line 37, in f res = func(args, *kwargs) File "/stable-diffusion-webui/modules/textual_inversion/ui.py", line 19, in preprocess modules.textual_inversion.preprocess.preprocess(args) File "/stable-diffusion-webui/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 "/stable-diffusion-webui/modules/textual_inversion/preprocess.py", line 212, in preprocess_work for focal in autocrop.crop_image(img, autocrop_settings): File "/stable-diffusion-webui/modules/textual_inversion/autocrop.py", line 32, in crop_image focus = focal_point(im_debug, settings) File "/stable-diffusion-webui/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 "/stable-diffusion-webui/modules/textual_inversion/autocrop.py", line 150, in image_face_points faces = detector.detect(np.array(im)) cv2.error: OpenCV(4.8.0) /io/opencv/modules/dnn/src/net_impl.cpp:279: error: (-204:Requested object was not found) Layer with requested id=-1 not found in function 'getLayerData'
Issue submission checklist