cubiq / ComfyUI_InstantID

Apache License 2.0
1.21k stars 69 forks source link

FaceAnalysis.__init__() got an unexpected keyword argument 'providers' #131

Closed Dekita closed 5 months ago

Dekita commented 5 months ago

Hi, I'm able to run my workflow completely fine in my local test setup, but when I try to deploy the same setup to my serverless environment, I get the following error message; image

I'm not entirely sure what could possibly be causing this issue, and I've been raking my brain for a few days trying to get this working serverless. Would greatly appreciate any insight you may be able to give as to what might cause this..

Many thanks <3

Dekita commented 5 months ago

Seems that making sure that instantid was requiring insightface v0.7.3 solved this issue :)

vesper8 commented 3 months ago

In my case, running pip install insightface was always installing insightface===0.2.1

I then ran pip install insightface==0.7.3 and that installed the latest version and then the problem went away

jelling commented 3 weeks ago

Same issue, also resolved by specifying the insightface version. Likely culprit is this year old issue in insightface repo.

To prevent further issues being opened in this repo, might be worth changing the requirement to pull from their github like this:

pip install git+https://github.com/deepinsight/insightface.git#subdirectory=python-package