cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
3.17k stars 238 forks source link

IPAdapterUnifiedLoaderFaceID: module 'cv2.dnn' has no attribute 'DictValue' #453

Closed yedidyakfir closed 2 months ago

yedidyakfir commented 2 months ago

I am trying to use ipadapter unifeid loader face id however I get the following error

IPAdapterUnifiedLoaderFaceID: module 'cv2.dnn' has no attribute 'DictValue'

This seems like an error with cv2 but I couldn't find any solution. My opencv version is 3.0.8.76 python 3.10.12 I am using a linux server to run my comfyui What are the correct version? has anyone encountered this issue?

cubiq commented 2 months ago

that's a very old version of opencv, just upgrade it

yedidyakfir commented 2 months ago

that's a very old version of opencv, just upgrade it

I updated to the newest version of opencv (4.9.0.80) with the same results (I also tried a couple of other versions)

cubiq commented 2 months ago

try to uninstall all opencv and start over

yedidyakfir commented 2 months ago

try to uninstall all opencv and start over

Same results

cubiq commented 2 months ago

try with version 4.8.1.78

yedidyakfir commented 2 months ago

try with version 4.8.1.78

The version you gave me did not work. However, I am using docker on my linux device (for technical reasons), when I try to install and import the library on my windows device or linux device without docker, I was successful. Moreover, I download the cv2.dnn.init.pyi file from my container and it seems the DictValues class exists there. Any idea what is going on? this is very weird.

cubiq commented 2 months ago

google: module 'cv2.dnn' has no attribute 'DictValue'

https://github.com/facebookresearch/nougat/issues/40

Tanglinling commented 2 months ago

I just updated to the latest version and I have a similar issue when using it.image

yedidyakfir commented 2 months ago

google: module 'cv2.dnn' has no attribute 'DictValue'

facebookresearch/nougat#40

Thank you so much for you help. I found my answer in the link you provided (specifically this response worked for me)

Tanglinling commented 2 months ago

May I ask you how this problem was solved?

---Original--- From: @.> Date: Thu, Apr 11, 2024 18:53 PM To: @.>; Cc: @.**@.>; Subject: Re: [cubiq/ComfyUI_IPAdapter_plus] IPAdapterUnifiedLoaderFaceID: module 'cv2.dnn' has no attribute 'DictValue' (Issue #453)

google: module 'cv2.dnn' has no attribute 'DictValue'

facebookresearch/nougat#40

Thank you so much for you help. I found my answer in the link you provided (specifically this response worked for me)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>