Install fix, albumentations pydantic insightface, onnxruntime-gpu #2761
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First critical installation issue
insightface
specifiesany
version ofalbumentations
and so will pip will install the newest version of
albumentations
albumentations
had an update1.4.4
in the past 24 hr see pypi/albumentations/historyit introduces a new requirement
webui 1.9 with gradio==3.41.2 / fastapi==0.94.0 requires
webui 1.9 is not compatible with
pydantic>=2.0
which causes web UI to not launch
solution for now
in controlnet
pin
albumentations==1.4.3
as control net requirementif
albumentations==1.4.3
is installed beforeinsightface
pip won't auto install the newest version1.4.4
I did a quick tested with
ip-adapter
, all variant seems to work fine after this PR, but today is the first time I useip-adapter
so I'm not sure if it's actually working properlyTo get webui back working
outdated
First
after install of
insightface
pydantic
will update from1.10.15
->2.7.0
and as far as I'm aware it is not compatible with
fastapi==0.94.0
/gradio==3.41.2
and woud cause webui to crash
so to "fix" this I've added some code that would revert the
pydantic
version to what it was afterinsightface
is installedI'm not sure because I have not played with ip-adapter before
but this downgrading
pydantic
to1.10.15
seems to casueip-adapter_face_id/plus
to breakSecond issue not as critical
they exist
onnxruntime
andonnxruntime-gpu
as far as I know they are interchangeable but they cannot coexist in the same environment (unless things has changed since)
in lots of use cases it doesn't really matter if you're running on CPU but for other extensions they might requires the extra performance
so I believe currently it's best to install the GPU version even if you don't need it as long as GPU is available
these are several instances of extensions checking for GPU before installing the appropriate onnxruntime
https://github.com/Gourieff/sd-webui-reactor/blob/main/install.py#L104-L124
Gourieff/sd-webui-reactor#170 (comment)
https://github.com/w-e-w/sd-webui-nudenet-nsfw-censor/blob/main/install.py
https://github.com/aria1th/sd-webui-nsfw-filter/blob/main/install.py
https://github.com/diffus-me/sd-webui-facefusion/blob/main/install.py#L22-L28
other changes
https://docs.python.org/3/whatsnew/3.12.html
and it seems to work better as in it's able to observe version changes before and after installation of packages
in previous commit I observedly change in the versions of packages and and reverting it
not important but since I already change I didn't bother reverting it