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

main_cfg problem #302

Open
jocoskragnus opened this issue Feb 26, 2024 · 0 comments
Open

main_cfg problem #302

jocoskragnus opened this issue Feb 26, 2024 · 0 comments

Comments

@jocoskragnus
Copy link

I cannot find main_cfg and I couldn't find where this should be used since in Colab demo there is this code snippet
matcher = LoFTR(config=default_cfg) if image_type == 'indoor': matcher.load_state_dict(torch.load("weights/indoor_ds.ckpt")['state_dict']) elif image_type == 'outdoor': matcher.load_state_dict(torch.load("weights/outdoor_ds.ckpt")['state_dict']) else: raise ValueError("Wrong image_type is given.") matcher = matcher.eval().cuda()
Even if I would use main_cfg, I would still get the same problem with key that is not recognized. How to solve this?

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

1 participant