Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected keys in state_dict #27

Open
jiaqchen opened this issue Jul 23, 2024 · 2 comments
Open

Unexpected keys in state_dict #27

jiaqchen opened this issue Jul 23, 2024 · 2 comments

Comments

@jiaqchen
Copy link

Trying to run the code and downloaded the necessary models: dpt_beit_large_384.pt, ZoeD_M12_K.pt, ZoeD_M12_NK.pt

However, now I run into an "unexpected keys in state_dict" error. Are these keys supposed to be initialized in the DPTDepthModel? Could I be doing something wrong? Thanks!

image
@m43
Copy link

m43 commented Jul 25, 2024

Those keys should be there, yes. What is your timm version? Maybe try pip install timm=0.6.7 as timm is used here:

from timm.models.beit import gen_relative_position_index

@yccyenchicheng
Copy link

Those keys should be there, yes. What is your timm version? Maybe try pip install timm=0.6.7 as timm is used here:

from timm.models.beit import gen_relative_position_index

This works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants