diff options
author | illtellyoulater <3078931+illtellyoulater@users.noreply.github.com> | 2023-12-04 02:35:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 02:35:35 +0000 |
commit | 639ccf254bd4d072f33333abb1ada3d08aaab470 (patch) | |
tree | 0f7b8f2382eda790ba652fb1aa8f21894c32bb50 /modules/models/diffusion/ddpm_edit.py | |
parent | 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 (diff) | |
download | stable-diffusion-webui-gfx803-639ccf254bd4d072f33333abb1ada3d08aaab470.tar.gz stable-diffusion-webui-gfx803-639ccf254bd4d072f33333abb1ada3d08aaab470.tar.bz2 stable-diffusion-webui-gfx803-639ccf254bd4d072f33333abb1ada3d08aaab470.zip |
Update launch_utils.py to fix wrong dep. checks and reinstalls
Fixes failing dependency checks for extensions having a different package name and import name (for example ffmpeg-python / ffmpeg), which currently is causing the unneeded reinstall of packages at runtime.
In fact with current code, the same string is used when installing a package and when checking for its presence, as you can see in the following example:
> launch_utils.run_pip("install ffmpeg-python", "required package")
[ Installing required package: "ffmpeg-python" ... ]
[ Installed ]
> launch_utils.is_installed("ffmpeg-python")
False
... which would actually return true with:
> launch_utils.is_installed("ffmpeg")
True
Diffstat (limited to 'modules/models/diffusion/ddpm_edit.py')
0 files changed, 0 insertions, 0 deletions