-
-
Notifications
You must be signed in to change notification settings - Fork 377
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]: Issues with DWopenpose installation and loading #3191
Comments
i've just pushed an update which installs correct versions. |
clean install of latest main, going straight to the control tab and selecting
didn't even trigger an automatic install of mmcv/dependencies
returning to my existing install, I attempted some variations on a manual install based on the specific version dependencies outlined in this commit: 7ea8145
starting up SDN again with these changes, we get the same errors reported in the original ticket:
so... more or less back to square one here |
argh. i hate |
appears to fail with the same error I ran into when attempting to install mmcv manually (see OP). My bypass was to use the URL to install it.
|
note that packages i've selected are different than what you've tried and couldn't make to work so you can install that with appending what you've suggested: but i'm reluctant to add that to auto-installer as that would lock it down to torch 2.3 with cuda 12.1 only and there are plenty of users on other versions of torch/cuda. also this is only needed if mmcv installer cannot find cuda on its own and on many systems it does. and guessing download path based on torch and cuda and figuring out what's available and what not is not something i want to do. anyhow, if my recommended versions plus your download path combo works, perhaps this should be added to wiki page https://github.com/vladmandic/automatic/wiki/Control |
Just to be clear, all my attempts to manually fix this via venv were done on my regular That being said, even a manual install now fails using
Please note that I have also tried running the above on a different computer as well, just in case, and the same error was encountered. |
ok, so now we have a correct list of packages, but they fail to install due to incompatible cuda detected by mmcv. |
132732-783616_INFO_Starting_SD..txt
Issue Description
Upon initial load of the DWpose controlnet model, SDN attempts to install its requirements but fails when attempting to install mmcv:
![image111](https://private-user-images.githubusercontent.com/17099756/335824082-b11e8892-3af3-44ef-977a-eb51abdd1616.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwMDI0MjcsIm5iZiI6MTcyMDAwMjEyNywicGF0aCI6Ii8xNzA5OTc1Ni8zMzU4MjQwODItYjExZTg4OTItM2FmMy00NGVmLTk3N2EtZWI1MWFiZGQxNjE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDEwMjIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3OWNhNDYzYTE2MzY0NzkzNGMzZjVhYjc1NWU4NGU4MDg3MjRmMmE2ZWNmYjEwMmEyMGFlMTU1MGUzZDFlOTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lHjAYPS45FtmnFZrrLcZhtWcr5D1dlqUXEt14gmhQMo)
Running the same command in venv shows that it attempts to install mmcv 2.2.0 and errors out in attempting to do so:
![image1112](https://private-user-images.githubusercontent.com/17099756/335824352-e64a1f8e-b885-4599-9b0f-422d706d2c82.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwMDI0MjcsIm5iZiI6MTcyMDAwMjEyNywicGF0aCI6Ii8xNzA5OTc1Ni8zMzU4MjQzNTItZTY0YTFmOGUtYjg4NS00NTk5LTliMGYtNDIyZDcwNmQyYzgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDEwMjIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMGUxMDEwM2U5MjEyYWM5MmQxYmZiZDNhNDI1NjA4ZDg4MGM5MGY1MzM1YmU2MjFlYzA1YTk1NzM4NTdmNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Kysbb3FKYyu-uuqRZEniMNzZ8Vbf6wHqjt_ew3-HLjc)
Installing mmcv 2.2.0 via
pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html
completes successfully, but SDN doesn't like the version, it expects2.0.0rc4
:ERROR Control Processor load failed: id="DWPose" error=MMCV==2.2.0 is used but incompatible.
Cleaning up and installing 2.0.0rc4 using the same technique as above also works as expected, and now SDN no longer warns of the version mismatch. But now another error is encountered:
19:22:49-211082 ERROR Control processor DWPose: DLL load failed while importing _ext: The specified module could not be found. 19:22:49-313600 ERROR Control processor DWPose: DLL load failed while importing _ext: The specified module could not be found. 19:22:49-315596 ERROR Control processor DWPose: OpenMMLab is not installed
For this, an older SDN ticket exists: #2877
![WindowsTerminal_AE2B6zu1Og](https://private-user-images.githubusercontent.com/17099756/335824717-3dc40b39-a7d5-4387-a678-8aaa60a32e81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwMDI0MjcsIm5iZiI6MTcyMDAwMjEyNywicGF0aCI6Ii8xNzA5OTc1Ni8zMzU4MjQ3MTctM2RjNDBiMzktYTdkNS00Mzg3LWE2NzgtOGFhYTYwYTMyZTgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDEwMjIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmODQxYTc0OWJhNWZmMTJkNjU5NjdiYTM3Nzc1ZThhMzNjOTBjNGZiNmNiY2IwMzg2OTZkNzlmNTM5NzY4YzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Sg-HTkoStEloHPoHVkg3T-K4myRYqI1rvhwzyL54leE)
The proposed solution in the linked ticket is running the following in venv:
Sadly the
DLL load failed
/OpenMMLab is not installed
errors still persist.Please note that the attached log file is from a different user experiencing the same issue (failed mmcv install).
Version Platform Description
Python 3.10.11 on Windows
Version: app=sd.next updated=2024-06-01 hash=06f9d6b6 branch=master
Platform: arch=AMD64 cpu=AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD system=Windows
release=Windows-10-10.0.22631-SP0 python=3.10.11
nVidia CUDA toolkit detected: nvidia-smi present
Extensions: disabled=['sdnext-modernui']
Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'stable-diffusion-webui-rembg'] extensions-builtin
Extensions: enabled=['a1111-sd-webui-tagcomplete', 'adetailer', 'sd-civitai-browser-plus'] extensions
Startup: standard
Load packages: {'torch': '2.3.0+cu121', 'diffusers': '0.28.0', 'gradio': '3.43.2'}
VRAM: Detected=11.99 GB Optimization=none
Engine: backend=Backend.DIFFUSERS compute=cuda device=cuda attention="Scaled-Dot-Product" mode=no_grad
Device: device=NVIDIA GeForce RTX 4070 n=1 arch=sm_90 cap=(8, 9) cuda=12.1 cudnn=8801 driver=552.44
Relevant log output
Backend
Diffusers
Branch
Master
Model
SD 1.5
Acknowledgements
The text was updated successfully, but these errors were encountered: