Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Control processor DWPose: DLL load failed while importing _ext: The specified module could not be found. #2877

Closed
2 tasks done
IowaSovereign opened this issue Feb 17, 2024 · 2 comments

Comments

@IowaSovereign
Copy link

Issue Description

When in the control tab trying to use DWPose, the installation of some requirements commences, but the processor doesn't load and gives an error. This persists after complete restart of the server. It also also breaks the control tab, and afterwards I'm unable to select any processor or model at all.

Issue can be resolved by manually installing torch and torchvision to CUDA 11.8, and manually reinstalling mmcv via venv.

Version Platform Description

Both the newest at the time master branch and dev branch.
Windows 11 24H2, GTX 1080Ti 11Gb
Issue seems browser agnostic, tried with Mozilla Firefox, Microsoft Edge, and Chrome

Relevant log output

2024-02-17 14:43:46,997 | sd | DEBUG | processors | Control Processor loading: id="DWPose" class=DWposeDetector
2024-02-17 14:43:47,217 | sd | DEBUG | installer | Package not found: openmim
2024-02-17 14:43:47,217 | sd | INFO | installer | Installing package: openmim
2024-02-17 14:43:47,219 | sd | DEBUG | installer | Running pip: install --upgrade openmim 
2024-02-17 14:44:06,617 | sd | DEBUG | installer | Package not found: mmengine
2024-02-17 14:44:06,617 | sd | INFO | installer | Installing package: mmengine
2024-02-17 14:44:06,619 | sd | DEBUG | installer | Running pip: install --upgrade mmengine 
2024-02-17 14:44:11,558 | sd | DEBUG | installer | Package not found: mmcv
2024-02-17 14:44:11,558 | sd | INFO | installer | Installing package: mmcv
2024-02-17 14:44:11,559 | sd | DEBUG | installer | Running pip: install --upgrade mmcv 
2024-02-17 14:44:16,614 | sd | DEBUG | installer | Package not found: mmpose
2024-02-17 14:44:16,614 | sd | INFO | installer | Installing package: mmpose
2024-02-17 14:44:16,616 | sd | DEBUG | installer | Running pip: install --upgrade mmpose 
2024-02-17 14:44:28,274 | sd | DEBUG | installer | Package not found: mmdet
2024-02-17 14:44:28,274 | sd | INFO | installer | Installing package: mmdet
2024-02-17 14:44:28,275 | sd | DEBUG | installer | Running pip: install --upgrade mmdet 
2024-02-17 14:44:44,918 | sd | ERROR | wholebody | Control processor DWPose: DLL load failed while importing _ext: The specified module could not be found.
2024-02-17 14:44:45,230 | sd | ERROR | wholebody | Control processor DWPose: DLL load failed while importing _ext: The specified module could not be found.
2024-02-17 14:44:45,232 | sd | ERROR | wholebody | Control processor DWPose: OpenMMLab is not installed
2024-02-17 14:44:45,234 | sd | DEBUG | processors | Control Processor loaded: id="DWPose" class=DWposeDetector time=58.24

Backend

Diffusers

Branch

Master

Model

SD 1.5

Acknowledgements

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@vladmandic
Copy link
Owner

sdnext attempts to install openmim and its packages as required by dwpose, but that is for convenience only - and openmim installer is pretty bad.
this is better handled as kb article so its documented what needs to be installed in case automated installer fails:

activate your venv and run following commands to install dwpose dependencies manually:

pip install -U openmim --no-deps
mim install mmengine mmcv mmpose mmdet --no-deps

@Aptronymist, you probably want to add this to wiki as well

@Aptronymist
Copy link
Collaborator

sdnext attempts to install openmim and its packages as required by dwpose, but that is for convenience only - and openmim installer is pretty bad. this is better handled as kb article so its documented what needs to be installed in case automated installer fails:

activate your venv and run following commands to install dwpose dependencies manually:

pip install -U openmim --no-deps
mim install mmengine mmcv mmpose mmdet --no-deps

@Aptronymist, you probably want to add this to wiki as well

Added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants