Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.53k stars 272 forks source link

Some errors duting instalation #476

Open nevaring opened 3 months ago

nevaring commented 3 months ago

First, confirm

What happened?

During installation see tis error message (see attachment) and SD not complecty running. How I can fix it? Снимок экрана 2024-07-06 121708

Steps to reproduce the problem

Installation process frov chapter VIII

Sysinfo

Win11

Relevant console log

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
blendmodes 2022 requires Pillow<10,>=9.0.0, but you have pillow 10.4.0 which is incompatible.
fastapi 0.94.0 requires pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2, but you have pydantic 2.8.2 which is incompatible.
mediapipe 0.10.14 requires protobuf<5,>=4.25.3, but you have protobuf 5.27.2 which is incompatible.
open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.27.2 which is incompatible.

Additional information

No response

js2004nt commented 2 months ago

I have some issues like that! Could anyone help with this? install

js2004nt commented 2 months ago

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. mediapipe 0.10.11 requires protobuf<4,>=3.11, but you have protobuf 5.27.3 which is incompatible. open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.27.3 which is incompatible. Successfully installed protobuf-5.27.3

mr-september commented 2 months ago

Likely elated to this issue: https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu/issues/509

Readme warns

Please see your extensions list. Some extensions can causes reinstalling of onnxruntime-gpu to onnxruntime<1.16.1 every time SD WebUI runs.

But if the extension is ControlNet itself, it's not really something users can give up. Please consider revisiting requirement versions and/or reach out to the upstream repos.

pedro-sousamartins commented 2 months ago

I had exactly the same error after running, pip install insightface==0.7.3, on a M1 mac:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. mediapipe 0.10.14 requires protobuf<5,>=4.25.3, but you have protobuf 5.27.3 which is incompatible. open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.27.3 which is incompatible.

After this I started SD but I got an error when I tried to use ip-adapter_faceid: (...) sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from (...)/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads/insightface/models/buffalo_l/w600k_r50.onnx failed:Protobuf parsing failed.

So protobuf seems to be the problem affecting ip-adapter_faceid/ip-adapter_faceid-plus.

Gourieff commented 3 weeks ago

You should downgrade protobuf (e.g. 3.20.3)