-
Notifications
You must be signed in to change notification settings - Fork 30
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
FileNotFoundError for the YAML configs from imatch-toolbox #27
Comments
Hi, I'm out of town until Monday and can take a closer look then, but I suspect an "editable" Does the config directory itself ( |
So it seems the "As package" does not recursively capture and add all subdirectories (in particular, those that do not contain "package" aka python files) to The quick solution is the "From Source" install, but I'm looking into how to get these directories copied into the right place with the simple install as well. |
Hi @alexstoken , I can confirm that the "From Source" install copies the YAML configs for me. I encounetered another similar issue with SuperGlue. The weights for SuperGlue models are stored directly in their repository. Therefore, the weights are cloned into |
Hope you are feeling better @v-pnk! I've done similar testing and found the same issue for the model weights. It looks like the solution is to change to an "editable" install, with
using the "From Source" method. I was able to get the script you sent (just the model loading) running after this. I also had to be in a numpy<2 env. I'll look for a more permanent solution, probably involving downloading the model weights and configs to the proper place automatically, in the near future. This does not solve the "As package" install, which isn't compatible with Let me know if the editable install works! |
Yes, the editable install works for me now. Thank you for your help! |
Hi! Thank you very much for this project!
I cannot call the
get_matcher(...)
on the methods from imatch-toolbox as the YAML config files are not installed with thematching
package. The following script results in FileNotFoundError:FileNotFoundError: [Errno 2] No such file or directory: '/home/<user>/micromamba/envs/meshext/lib/python3.10/site-packages/matching/third_party/imatch-toolbox/configs/superglue.yml'
When the same call is done inside a Python interactive shell from within the
image-matching-models
directory, the configs are found without any issues.I already tried to solve this issue with imatch-toolbox some time ago but without success. Do you have any solution or advice?
The text was updated successfully, but these errors were encountered: