lpiccinelli-eth / UniDepth

Universal Monocular Metric Depth Estimation
Other
462 stars 39 forks source link

[Bug] TypeError: UniDepthV1.__init_subclass__() takes no keyword arguments #24

Closed henryzhengr closed 2 months ago

henryzhengr commented 2 months ago

In the latest commit, import unidepth using the following code will cause errors

from unidepth.models import UniDepthV1

The following error will occur:

TypeError: UniDepthV1.__init_subclass__() takes no keyword arguments

Cause: This seems to be introduced by: https://github.com/lpiccinelli-eth/UniDepth/blob/bf29320f60943ae5c1c77636f05f232a5a144e1c/unidepth/models/unidepthv1/unidepthv1.py#L100-L104

Solution: Removing #L102 to #L104 seems to work

lpiccinelli-eth commented 2 months ago

You are right, as mentioned in #20, after that change, we also changed the requirements.txt to install the more recent huggingface_hub package to >=0.22.0, so you should update your huggingface_hub, too, to avoid that error.