Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.41k stars 1.9k forks source link

[Bug]: (not necessary) package check not work properly #2961

Open ananosleep opened 1 week ago

ananosleep commented 1 week ago

Is there an existing issue for this?

What happened?

WebUI throw out changing opencv-python version from 4.10.0.84 to 4.8.0 every time, although it's already satisfied opencv-python>=4.8.0

Steps to reproduce the problem

Just do a simple launch.

What should have happened?

Ignore packages which are already satisfied

Commit where the problem happens

webui: v1.9.4-169-ga30b19dd controlnet: 8bbbd0e

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--xformers --no-gradio-queue --opt-channelslast --precision half

List of enabled extensions

this extension itself only.

Console logs

Python 3.10.14+ (heads/3.10:48f9d3e3fa, Jun 10 2024, 16:53:46) [MSC v.1939 64 bit (AMD64)]
Version: v1.9.4-169-ga30b19dd
Commit hash: a30b19dd5536f463222e484aef2daf466b49ee85
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.10.0.84 to 4.8.0
Looking in indexes: https://pypi.org/simple
Requirement already satisfied: opencv-python>=4.8.0 in d:\windows\sd-webui\stable-diffusion-webui-dev\venv2\lib\site-packages (4.10.0.84)
Requirement already satisfied: numpy>=1.21.2 in d:\windows\sd-webui\stable-diffusion-webui-dev\venv2\lib\site-packages (from opencv-python>=4.8.0) (1.26.2)
Launching Web UI with arguments: --xformers --no-gradio-queue --opt-channelslast --precision half --lora-dir E:\temp-model
ldm/sgm GroupNorm32 replaced with normal torch.nn.GroupNorm due to `--precision half`.
ControlNet preprocessor location: D:\Windows\sd-webui\A1111-extensions\sd-webui-controlnet\annotator\downloads
2024-06-21 18:34:46,433 - ControlNet - INFO - ControlNet v1.1.449
Loading weights [2a5740e96c] from D:\Windows\sd-webui\stable-diffusion-webui-dev\models\Stable-diffusion\_Für-Alice-fp8.safetensors
Creating model from config: D:\Windows\sd-webui\stable-diffusion-webui-dev\configs\v1-inference.yaml
D:\Windows\sd-webui\stable-diffusion-webui-dev\venv2\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
2024-06-21 18:34:47,365 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 29.7s (prepare environment: 11.2s, import torch: 9.1s, import gradio: 1.7s, setup paths: 2.6s, initialize shared: 0.5s, other imports: 1.2s, list SD models: 0.1s, load scripts: 1.6s, create ui: 1.3s, gradio launch: 0.2s).
Applying attention optimization: xformers... done.
Model loaded in 11.8s (load weights from disk: 0.2s, create model: 1.6s, apply weights to model: 9.3s, apply half(): 0.2s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.2s).

Additional information

No response