naver / dust3r

DUSt3R: Geometric 3D Vision Made Easy
https://dust3r.europe.naverlabs.com/
Other
4.65k stars 515 forks source link

TypeError: AsymmetricCroCo3DStereo.__init_subclass__() takes no keyword arguments #80

Closed chengluberkeley closed 2 months ago

chengluberkeley commented 2 months ago

I sync to the latest commit of the repo, and follow the code in the "Usage" part of ReadMe. However, for from dust3r.model import AsymmetricCroCo3DStereo, I get the below error:

TypeError: AsymmetricCroCo3DStereo.__init_subclass__() takes no keyword arguments

How to resolve it? Thanks.

yocabon commented 2 months ago

Hi, it should be caused by an incompatible version of the huggingface_hub dependency. I added a version check in the code with a more verbose error message.

Can you update it ?

either pip install -r requirements.txt or pip install huggingface-hub[torch]>=0.22

chengluberkeley commented 2 months ago

It works. Thanks!