UniDepth icon indicating copy to clipboard operation
UniDepth copied to clipboard

TypeError: UniDepthV1.__init__() missing 1 required positional argument: 'config'

Open mrwangxinqwe opened this issue 10 months ago • 6 comments

My version was cloned on April 26 and has the same problems that people have asked about before.That's the question that comes up: Torch version: 2.2.0+cu118 Traceback (most recent call last): File "/home/wx/Downloads/UniDepth-main/scripts/demo.py", line 40, in model = UniDepthV1.from_pretrained("lpiccinelli/unidepth-v1-vitl14") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wx/anaconda3/envs/unidepth/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/wx/anaconda3/envs/unidepth/lib/python3.11/site-packages/huggingface_hub/hub_mixin.py", line 420, in from_pretrained instance = cls._from_pretrained( ^^^^^^^^^^^^^^^^^^^^^ File "/home/wx/anaconda3/envs/unidepth/lib/python3.11/site-packages/huggingface_hub/hub_mixin.py", line 643, in _from_pretrained model = cls(**model_kwargs) ^^^^^^^^^^^^^^^^^^^ TypeError: UniDepthV1.init() missing 1 required positional argument: 'config'

mrwangxinqwe avatar Apr 26 '24 11:04 mrwangxinqwe