Giter Club home page Giter Club logo

image-matching-toolbox's Issues

Prepare Image Pairs

bash download.sh:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1T2c3DHJlTdRpo_Y3Ad4AH8p4tS7cOyjP (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0d00812cd0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
unzip: cannot find or open pairs.zip, pairs.zip.zip or pairs.zip.ZIP.

A request for help when testing Hpatch `ValueError: zero-size array to reduction operation minimum which has no identity`

Hi!

Thank you so much for releasing this toolbox and for the awesome paper on Patch2Pix.
Here, I would like to kindly ask for your help.

I have tried to run your example for Patch2Pix and another one of SuperPoint + NCNet ...

The following code lines are in ./test_patch3pix.sh...

python -m immatch.eval_hpatches --gpu 0 \
    --config 'patch2pix' --match_thres 0.25 0.5 0.9  \
    --task 'both' --save_npy \
    --root_dir . 

However, I keep getting following error ValueError: zero-size array to reduction operation minimum which has no identity ... I am not sure how to fix it.
So, please give the guidance...

Below here is the full error report.

Also, I have captured the screen to confirm at the bottom to confirm

(immatch) gabby-suwichaya@gabby-suwichaya:/mnt/HDD4TB1/image-matching-toolbox$ ./test_patch3pix.sh Can not import sparsencnet

>>>> Method=Patch2Pix Default config: {'class': 'Patch2Pix', 'ckpt': 'pretrained/patch2pix/patch2pix_pretrained.pth', 'ksize': 2, 'imsize': 1024, 'match_threshold': 0.25} Thres: [0.25, 0.5, 0.9]

Load model method:patch2pix 
Ckpt:pretrained/patch2pix/patch2pix_pretrained.pth
Initialize Patch2Pix: backbone=ResNet34 cstride=True upsample=8
Init regressor Namespace(conv_dims=[512, 512], conv_kers=[3, 3], conv_strs=[2, 1], fc_dims=[512, 256], feat_comb='pre', feat_dim=259, panc=1, pshift=8, psize=[16, 16], shared=False)
FeatRegressNet:  feat_comb:pre psize:16 out:5 feat_dim:518 conv_kers:[3, 3] conv_dims:[512, 512] conv_str:[2, 1] 
FeatRegressNet:  feat_comb:pre psize:16 out:5 feat_dim:518 conv_kers:[3, 3] conv_dims:[512, 512] conv_str:[2, 1] 
Xavier initialize all model parameters
Initialize ResNet using pretrained model from https://download.pytorch.org/models/resnet34-333f7ec4.pth
Reload all model parameters from weights dict
Initialize Patch2Pix
Matching thres: 0.25  Save to: ./outputs/hpatches/cache/Patch2Pix.im1024.m0.25.npy

>>Eval hpatches: method=Patch2Pix rthres=2 thres=[1, 3, 5, 10] 
Save results to ./outputs/hpatches/cache/Patch2Pix.im1024.m0.25.npy
/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/site-packages/numpy/core/fromnumeric.py:3441: RuntimeWarning: Mean of empty slice.
  out=out, **kwargs)
/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/site-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
  File "/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/mnt/HDD4TB1/image-matching-toolbox/immatch/eval_hpatches.py", line 98, in <module>
    print_out=args.print_out
  File "/mnt/HDD4TB1/image-matching-toolbox/immatch/eval_hpatches.py", line 74, in eval_hpatches
    save_npy=result_npy
  File "/mnt/HDD4TB1/image-matching-toolbox/immatch/utils/hpatches_helper.py", line 323, in eval_hpatches
    lprint_(eval_summary(results, thres, save_npy=save_npy))
  File "/mnt/HDD4TB1/image-matching-toolbox/immatch/utils/hpatches_helper.py", line 28, in eval_summary
    summary += '# Features: mean={:.0f} min={:d} max={:d}\n'.format(np.mean(n_feats), np.min(n_feats), np.max(n_feats))
  File "<__array_function__ internals>", line 6, in amin
  File "/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2880, in amin
    keepdims=keepdims, initial=initial, where=where)
  File "/home/gabby-suwichaya/anaconda3/envs/immatch/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

demo_problem

Bug Report - installation problem

Hi,
Your work is really great.
But when downloading d2-net pretrained model by running bash download.sh according to the install.md, the terminal prompts that "wget: unable to resolve host address 'dsmn.ml'". And “dsmn.ml” is also inaccessible using google.

Please help me, thank you very much.

python setup.py develop failed

when running python setup.py develop

ERROR:: You need Python 3.8 or greater to install PyTables!
error: Setup script exited with 1

should I change python version to 3.8 to avoid the problem?

Pycolmap Error not found during install

Following the install instructions i tried to install pycolmap but its giving me an error for both ways suggested:


 developer@deltacv:~/ImageMatching/image-matching-toolbox$ pip install git+https://github.com/mihaidusmanu/pycolmap
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cusparse_cu12-12.1.0.106-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scikit_image-0.24.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/torch-2.3.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/beautifulsoup4-4.13.0b2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/msgpack-1.1.0rc1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tables-3.9.2-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/numpy-1.26.4-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nccl_cu12-2.20.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tomli-2.0.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/MarkupSafe-2.1.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pydantic-2.8.0b1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/gdown-5.2.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/sympy-1.13.0rc3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/opencv_python-4.10.0.84-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/PyYAML-6.0.2rc1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia_moons-0.2.9-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/vispy-0.14.3-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/py_cpuinfo-9.0.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/sniffio-1.3.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia-0.7.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_nvrtc_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/freetype_py-2.4.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/lazy_loader-0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/jinja2-3.1.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/h5py-3.11.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/imageio-2.34.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_cupti_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/soupsieve-2.5-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/contourpy-1.2.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tifffile-2024.6.18-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cudnn_cu12-8.9.2.26-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pillow-10.3.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/numexpr-2.10.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scipy-1.14.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/ndindex-1.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/fsspec-2024.6.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/mpmath-1.3.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/python_dateutil-2.9.0.post0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/joblib-1.4.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/albucore-0.0.12-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia_rs-0.1.3-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cufft_cu12-11.0.2.54-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/httpcore-0.13.7-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/annotated_types-0.7.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/glfw-2.7.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/h11-0.12.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/filelock-3.15.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/opencv_python_headless-4.10.0.84-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/einops-0.8.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nvjitlink_cu12-12.5.40-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/fonttools-4.53.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/blosc2-3.0.0b1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/cycler-0.12.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/anyio-3.7.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/hsluv-5.0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/matplotlib-3.9.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/networkx-3.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scikit_learn-1.5.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cusolver_cu12-11.4.5.107-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_curand_cu12-10.3.2.106-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/rfc3986-1.5.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/httpx-1.0.0b0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pydantic_core-2.20.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/albumentations-1.4.10-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/yacs-0.1.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/six-1.16.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cublas_cu12-12.1.3.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pyparsing-3.1.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kiwisolver-1.4.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/threadpoolctl-3.5.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/transforms3d-0.4.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nvtx_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_runtime_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/typing_extensions-4.12.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Collecting git+https://github.com/mihaidusmanu/pycolmap
  Cloning https://github.com/mihaidusmanu/pycolmap to /tmp/pip-req-build-r98tx25v
  Running command git clone --filter=blob:none --quiet https://github.com/mihaidusmanu/pycolmap /tmp/pip-req-build-r98tx25v
  Resolved https://github.com/mihaidusmanu/pycolmap to commit b6627db2266f098c21c3d7e4b7844b4b90d8e02d
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/developer/miniconda3/lib/python3.12/site-packages/numpy-1.26.4-py3.12-linux-x86_64.egg (from pycolmap==0.7.0.dev0) (1.26.4)
Building wheels for collected packages: pycolmap
  Building wheel for pycolmap (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pycolmap (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      *** scikit-build-core 0.9.7 using CMake 3.29.6 (wheel)
      *** Configuring CMake...
      2024-06-28 11:27:21,150 - scikit_build_core - WARNING - Can't find a Python library, got libdir=/home/developer/miniconda3/lib, ldlibrary=libpython3.12.a, multiarch=x86_64-linux-gnu, masd=None
      loading initial cache file /tmp/tmpgivcw1_1/build/CMakeInit.txt
      -- The C compiler identification is GNU 11.4.0
      CMake Error at /tmp/pip-build-env-oqhd_60u/normal/lib/python3.12/site-packages/cmake/data/share/cmake-3.29/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
        Could not find compiler set in environment variable CXX:
      
        /home/developer/miniconda3/envs/immatch/bin/g++.
      
      Call Stack (most recent call first):
        CMakeLists.txt:2 (project)
      
      
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      
      *** CMake configuration failed
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycolmap
Failed to build pycolmap
ERROR: Could not build wheels for pycolmap, which is required to install pyproject.toml-based projects
(base) developer@deltacv:~/ImageMatching/image-matching-toolbox$ pip install pycolmap
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cusparse_cu12-12.1.0.106-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scikit_image-0.24.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/torch-2.3.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/beautifulsoup4-4.13.0b2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/msgpack-1.1.0rc1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tables-3.9.2-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/numpy-1.26.4-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nccl_cu12-2.20.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tomli-2.0.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/MarkupSafe-2.1.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pydantic-2.8.0b1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/gdown-5.2.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/sympy-1.13.0rc3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/opencv_python-4.10.0.84-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/PyYAML-6.0.2rc1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia_moons-0.2.9-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/vispy-0.14.3-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/py_cpuinfo-9.0.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/sniffio-1.3.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia-0.7.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_nvrtc_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/freetype_py-2.4.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/lazy_loader-0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/jinja2-3.1.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/h5py-3.11.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/imageio-2.34.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_cupti_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/soupsieve-2.5-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/contourpy-1.2.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/tifffile-2024.6.18-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cudnn_cu12-8.9.2.26-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pillow-10.3.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/numexpr-2.10.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scipy-1.14.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/ndindex-1.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/fsspec-2024.6.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/mpmath-1.3.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/python_dateutil-2.9.0.post0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/joblib-1.4.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/albucore-0.0.12-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kornia_rs-0.1.3-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cufft_cu12-11.0.2.54-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/httpcore-0.13.7-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/annotated_types-0.7.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/glfw-2.7.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/h11-0.12.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/filelock-3.15.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/opencv_python_headless-4.10.0.84-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/einops-0.8.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nvjitlink_cu12-12.5.40-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/fonttools-4.53.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/blosc2-3.0.0b1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/cycler-0.12.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/anyio-3.7.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/hsluv-5.0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/matplotlib-3.9.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/networkx-3.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/scikit_learn-1.5.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cusolver_cu12-11.4.5.107-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_curand_cu12-10.3.2.106-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/rfc3986-1.5.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/httpx-1.0.0b0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pydantic_core-2.20.0-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/albumentations-1.4.10-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/yacs-0.1.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/six-1.16.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cublas_cu12-12.1.3.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/pyparsing-3.1.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/kiwisolver-1.4.5-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/threadpoolctl-3.5.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/transforms3d-0.4.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_nvtx_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/nvidia_cuda_runtime_cu12-12.1.105-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /home/developer/miniconda3/lib/python3.12/site-packages/typing_extensions-4.12.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
ERROR: Could not find a version that satisfies the requirement pycolmap (from versions: none)
ERROR: No matching distribution found for pycolmap

LoFTR has a bug in position_encoding.py

Wrong:
div_term = torch.exp(torch.arange(0, d_model//2, 2).float() * (-math.log(10000.0) / d_model//2))
Correct:
div_term = torch.exp(torch.arange(0, d_model//2, 2).float() * (-math.log(10000.0) / (d_model//2)))

This seems to be fixed in original repo.

ModuleNotFoundError

First of all, thank you for your excellent work. I run eval__ hpatches after installing the environment, there is a ModuleNotFound Error:
ModuleNotFoundError: No module named 'third_party.caps.CAPS'
I think it may be the problem of submodules. Some submodules can be imported normally, such as d2net, r2d2

Feature Request: Add homography AUC

In this toolbox, homographies on hpatches are evaluated with accuracy, while recent papers such as LoFTR and SuperGlue both use AUC, which makes comparisons difficult.

It further complicates matters that pydegensac is used here, while the opencv version is used in most papers.
Adding the option of calculating AUC and opencv would make comparison easier.
See e.g.
https://github.com/PruneTruong/DenseMatching/blob/40c29a6b5c35e86b9509e65ab0cd12553d998e5f/validation/utils.py#L209
for an AUC implementation.

what is the meaning of $colmap path ?

--colmap $COLMAP_PATH
in the evaluation code, there is an ambiguous parameter and I don't know the actual meaning of it. Can you give an example and explain why I need install colmap since I have installed pycolmap?

COTR no matches found in hpatches test

exec the command according to the evaulation.md

python -m immatch.eval_hpatches --gpu 0 \ 
    --config  'cotr' \
    --task 'both' --save_npy \
    --root_dir .

and output:

>>>> Method=COTR Default config: {'class': 'COTR', 'ckpt': 'pretrained/cotr/cotr_default.pth.tar', 'backbone': 'resnet50', 'hidden_dim': 256, 'dilation': False, 'dropout': 0.1, 'nheads': 8, 'layer': 'layer3', 'backbone_layer_dims': {'layer1': 256, 'layer2': 512, 'layer3': 1024, 'layer4': 2048}, 'enc_layers': 6, 'dec_layers': 6, 'position_embedding': 'lin_sine', 'max_corrs': 100, 'match_threshold': 0.0, 'imsize': -1, 'batch_size': 32} Thres: [0.0]
Matching thres: 0.0  Save to: ./outputs/hpatches/cache/COTR.npy

>>>>Eval hpatches: task=matching+homography method=COTR scale_H=False rthres=2 thres=[1, 3, 5, 10] 
>>Finished, pairs=0 match_failed=580 matches=0.0 match_time=nans
==== Image Matching ====
#Features: mean=0 min=0 max=0
#(Old)Matches: a=0, i=0, v=0
#Matches: a=0, i=0, v=0
MMA@[ 1  3  5 10] px:
a=[0. 0. 0. 0.]
i=[0. 0. 0. 0.]
v=[0. 0. 0. 0.]

==== Homography Estimation ====
Hest solver=degensac est_failed=580 ransac_thres=2 inlier_rate=0.00
Hest Correct: a=[0. 0. 0. 0.]
i=[0. 0. 0. 0.]
v=[0. 0. 0. 0.]
Hest AUC: a=[0. 0. 0. 0.]
i=[0. 0. 0. 0.]
v=[0. 0. 0. 0.]

and i set print function in match_pairs function but no infomation output

def match_pairs(self, im1_path, im2_path, queries_im1=None):
        im1 = imageio.imread(im1_path, pilmode='RGB')
        im2 = imageio.imread(im2_path, pilmode='RGB')
        engine = SparseEngine(self.model, self.batch_size, mode='tile')
        matches = engine.cotr_corr_multiscale(
            im1, im2, np.linspace(0.5, 0.0625, 4), 1,
            max_corrs=self.max_corrs, queries_a=queries_im1,
            force=True
        )

        print(matches.shape) # add print

        # Fake scores as not output by the model
        scores = np.ones(len(matches))
        kpts1 = matches[:, :2]
        kpts2 = matches[:, 2:4]
        return matches, kpts1, kpts2, scores

[email protected]: Permission denied (publickey).

Thanks for this great project. According to the installation doc the toolbox should be install using ssh, which is impossible for users interested to add ssh-key to this project. And offcourse, nonsense. and I have checked the .gitmodules file
[submodule "third_party/SuperGluePretrainedNetwork"] path = third_party/superglue url = [email protected]:magicleap/SuperGluePretrainedNetwork.git [submodule "third_party/caps"] path = third_party/caps url = [email protected]:GrumpyZhou/caps.git [submodule "third_party/d2-net"] path = third_party/d2net url = [email protected]:mihaidusmanu/d2-net.git [submodule "third_party/r2d2"] path = third_party/r2d2 url = https://github.com/naver/r2d2 ignore = untracked [submodule "third_party/sparse-ncnet"] path = third_party/sparsencnet url = [email protected]:ignacio-rocco/sparse-ncnet.git [submodule "third_party/hloc"] path = third_party/hloc url = [email protected]:GrumpyZhou/Hierarchical-Localization.git branch = extend_base_dev
would you change the url to https, so we can test and use this great project.

The possibilities of python to C++

Patch2Pix achieved amazingly good results on our dataset. Therefore, we are interested in taking the work further and deploying it on our C++ project.

Unfortunately, I am not familiar with this process and would like to ask for your opinion and advice on this. I've researched that the methods involved include compiling the python program as '.DLL' and using C++ calls, and I'm not sure if this will affect efficiency. Or reading and understanding the program in depth and rewriting it in C++, which would be a very challenging work.

Thank you very much for your suggestions and help!

Test loftr in inloc

hi,i used image-matching-toolbox to eval loftr for inloc,
config:
default: &default
class: 'LoFTR'
ckpt: 'pretrained/loftr/outdoor_ds.ckpt'
match_threshold: 0.2
imsize: 1024
no_match_upscale: False
example:
<<: *default
match_threshold: 0.5
imsize: -1
hpatch:
<<: *default
imsize: 480
no_match_upscale: True
inloc:
<<: *default
pairs: 'pairs-query-netvlad40-temporal.txt'
rthres: 48
skip_matches: 20

and then get result as below:
image

How do I add my own methods to test?

I copied the loftr code to add the required files, but when running my code failed:
KeyError: 'block_type'
Self. block_type = config['block_type'], which is the argument in my code

robotcar-season eval run very slowly

Hi, thanks for your excellent work.

I finished robotcar dataset preparation and can successfully run eval program. However, the process takes too much time (around 2000+ hours estimation for matching 4.7M+ data). Is it normal? Or any mistakes maybe happen?

Also, does skip-match work? And can I skip that? Could you help me and explain?

Thanks for your time!

python -m immatch.eval_inloc

File "/home/szw/image-matching-toolbox-main/immatch/eval_inloc.py", line 5, in
from third_party.hloc.hloc.localize_inloc import localize_with_matcher
ImportError: cannot import name 'localize_with_matcher'

'localize_with_matcher' is not really in 'localize_inloc.py',Did you make a mistake?

Where to find download.sh?

Hi,

This repo is a really nice one. However, I couldn't find the folder pretrained and the download.sh to download the pretrained weights. Is it not pushed yet?

Thanks you very much.

LoFTR Update

Hi thx for repo!
But can you update LoFTR-git?
Thx!

RuntimeError

RuntimeError:
Tried to access nonexistent attribute or method 'call' of type 'torch.kornia.geometry.boxes.Boxes3D'. Did you forget to initialize an attribute in init()?:
File "/home/szw/anaconda3/envs/image-matching-toolbox-main/lib/python3.7/site-packages/kornia/geometry/boxes.py", line 601
# Due to some torch.jit.script bug (at least <= 1.9), you need to pass all arguments to init when
# constructing the class from inside of a method.
return cls(hexahedrons, raise_if_not_floating_point=False, mode=mode)
~~~ <--- HERE

Test loftr in aachen

Hi! I’m trying to use your great work to eval loftr in aachen.
But it seems like a huge work, my running state is shown below, It doesn't call the gpu to handle....

100%|██████████| 131615/131615 [00:01<00:00, 99454.57it/s]
0%| | 0/102817 [00:00<?, ?it/s]
Load match file, existing matches 0
Start matching, total 102817 pairs...
0%| | 3/102817 [01:27<831:08:45, 29.10s/it]

Is this a normal phenomenon? If not, could you tell me how to solve it?

my args is:

--gpu
0
--config
loftr
--colmap
F:/work/COLMAP-3.8-windows-cuda/COLMAP.bat
--benchmark_name
aachen

my config is as follow, only changed the path of ckpt.

default: &default
class: 'LoFTR'
ckpt: 'E:/work/image-matching-toolbox-main/pretrained/loftr/myout0.ckpt'
match_threshold: 0.2
imsize: -1
no_match_upscale: False
aachen:
<<: *default
match_threshold: 0.0 # Save all matches
pairs: ['pairs-db-covis20.txt', 'pairs-query-netvlad50.txt']
npts: 4096
imsize: 1024
qt_dthres: 4
qt_psize: 48
qt_unique: True
ransac_thres: [20]
sc_thres: 0.2 # Filtering during quantization
covis_cluster: True

SIFT+SuperGlue

Hi, thank you for coming up with this great project! I have been working on this project recently, and superglue really feels like the best matching method at present. I would like to ask if you plan to release the combination of SIFT + Superglue? thanks!

I have a question

I encountered some errors while running this naming:bash download.sh
https://dsmn.ml/files/d2-net/d2_tf.pth
Resolving host dsmn. ml (dsmn. ml) Failure: Unknown name or service.
Wget: Unable to resolve host address' dsmn. ml '
--2024-05-29 19:41:36-- https://dsmn.ml/files/d2-net/d2_tf_no_phototourism.pth
Resolving host dsmn. ml (dsmn. ml) Failure: Unknown name or service.
Wget: Unable to resolve host address' dsmn. ml '
--2024-05-29 19:41:36-- https://www.di.ens.fr/willow/research/sparse-ncnet/models/sparsencnet_k10.pth.tar
Resolving host www.di. ens. fr (www.di. ens. fr) 129.199.99.14
Connecting to www.di. ens. fr (www.di. ens. fr) | 129.99.14 |: 443... Connected.
An HTTP request has been sent and is waiting for a response 200 OK
Length: unspecified [application/x-tar]
Saving to: "sparsencnet/sparsencnet_k10. pth. tar"
Can you give me some advice? Thank you

Unable to execute Quick Testing code

I am unable to execute the quick testing code shown in readme.md
I've imported all the files as a PyCharm project, then I installed all the required packages using Conda, I created the following file to execute the image-matching-toolbox, but I have this error... (in addition, there is NO file plot_matches.py inside immatch.utils)
image

Waiting your answer, thank you in advance

Installation Problems,

I am going throught the installation process but i am getting an error in the following line:

(immatch) developer@deltacv:~/ImageMatching/image-matching-toolbox$ python setup.py develop
running develop
/home/developer/miniconda3/envs/immatch/lib/python3.8/site-packages/setuptools/command/develop.py:39: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/home/developer/miniconda3/envs/immatch/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running egg_info
writing immatch.egg-info/PKG-INFO
writing dependency_links to immatch.egg-info/dependency_links.txt
writing requirements to immatch.egg-info/requires.txt
writing top-level names to immatch.egg-info/top_level.txt
reading manifest file 'immatch.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'immatch.egg-info/SOURCES.txt'
running build_ext
Creating /home/developer/miniconda3/envs/immatch/lib/python3.8/site-packages/immatch.egg-link (link to .)
immatch 0.1.0 is already the active version in easy-install.pth

Installed /home/developer/ImageMatching/image-matching-toolbox
Processing dependencies for immatch==0.1.0
Searching for tables
Reading https://pypi.org/simple/tables/
Downloading https://files.pythonhosted.org/packages/31/83/8a13be8338219c3fe0aa7357d1ec4edb27bc346e0f224df7212892b243b5/tables-3.9.2.tar.gz#sha256=d470263c2e50c4b7c8635a0d99ac1ff2f9e704c24d71e5fa33c4529e7d0ad9c3
Best match: tables 3.9.2
Processing tables-3.9.2.tar.gz
Writing /tmp/easy_install-0lrm8vdt/tables-3.9.2/setup.cfg
Running tables-3.9.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0lrm8vdt/tables-3.9.2/egg-dist-tmp-yoouob_0
cpuinfo failed, assuming no CPU features: No module named 'cpuinfo'
* Using Python 3.8.18 (default, Sep 11 2023, 13:20:55) 
* Found cython 3.0.10
* USE_PKGCONFIG: False
* Found conda env: ``/home/developer/miniconda3/envs/immatch``
* Found HDF5 headers at ``/home/developer/miniconda3/envs/immatch/include``, library at ``/home/developer/miniconda3/envs/immatch/lib``.
creating tmp
creating tmp/easy_install-0lrm8vdt
creating tmp/easy_install-0lrm8vdt/tables-3.9.2
creating tmp/easy_install-0lrm8vdt/tables-3.9.2/temp
gcc -pthread -B /home/developer/miniconda3/envs/immatch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/developer/miniconda3/envs/immatch/include/python3.8 -c /tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_daterv92dg06.c -o tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_daterv92dg06.o
/tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_daterv92dg06.c:1:10: fatal error: lzo/lzo1x.h: No such file or directory
    1 | #include "lzo/lzo1x.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
* Could not find LZO 2 headers and library; disabling support for it.
gcc -pthread -B /home/developer/miniconda3/envs/immatch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/developer/miniconda3/envs/immatch/include/python3.8 -c /tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_datew4f91gbi.c -o tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_datew4f91gbi.o
/tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/lzo_version_datew4f91gbi.c:1:10: fatal error: lzo1x.h: No such file or directory
    1 | #include "lzo1x.h"
      |          ^~~~~~~~~
compilation terminated.
* Could not find LZO 1 headers and library; disabling support for it.
* Found bzip2 headers at ``/home/developer/miniconda3/envs/immatch/include``, library at ``/home/developer/miniconda3/envs/immatch/lib``.
gcc -pthread -B /home/developer/miniconda3/envs/immatch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/developer/miniconda3/envs/immatch/include/python3.8 -c /tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc_list_compressorssfjna34n.c -o tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc_list_compressorssfjna34n.o
/tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc_list_compressorssfjna34n.c:1:10: fatal error: blosc.h: No such file or directory
    1 | #include "blosc.h"
      |          ^~~~~~~~~
compilation terminated.
* Could not find blosc headers and library; using internal sources.
* Run 'blosc2_find_directories_hook'
* Unable to find blosc2 wheel.
gcc -pthread -B /home/developer/miniconda3/envs/immatch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/developer/miniconda3/envs/immatch/include/python3.8 -c /tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc2_list_compressors8hn_saux.c -o tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc2_list_compressors8hn_saux.o
/tmp/easy_install-0lrm8vdt/tables-3.9.2/temp/blosc2_list_compressors8hn_saux.c:1:10: fatal error: blosc2.h: No such file or directory
    1 | #include "blosc2.h"
      |          ^~~~~~~~~~
compilation terminated.
.. ERROR:: Could not find a local blosc2 installation.
   You may need to explicitly state where your local blosc2 headers
   and library can be found by setting the ``BLOSC2_DIR`` environment
   variable or by using the ``--blosc2`` command-line option.
error: Setup script exited with 1

Does anyone know how to fix it?

patch2pix with superglue

Hello,
I find patch2pix with superglue can get a better result than superpoint+superglue in hloc.can you tell me how to use patch2pix with superglue in this code. thanks.

nn_matching: cannot perform reduction function max on tensor with no elements

Hello @GrumpyZhou ,

Image pair matching sometimes fails with the following error:

File "my_code.py", line 111, in <lambda>
    matcher = lambda im1, im2: model.match_pairs(im1, im2)
File ".../image-matching-toolbox/immatch/modules/caps.py", line 79, in match_pairs
    matches, kpts1, kpts2, scores = self.match_inputs_(im1, gray1, im2, gray2)
File ".../image-matching-toolbox/immatch/modules/caps.py", line 69, in match_inputs_
    match_ids, scores = self.mutual_nn_match(desc1, desc2, threshold=self.match_threshold)
File ".../image-matching-toolbox/immatch/modules/base.py", line 63, in mutual_nn_match
    return mutual_nn_matching(desc1, desc2, threshold)
File ".../image-matching-toolbox/immatch/modules/nn_matching.py", line 28, in mutual_nn_matching
    matches, scores = mutual_nn_matching_torch(desc1, desc2, threshold=threshold)
File .../image-matching-toolbox/immatch/modules/nn_matching.py", line 12, in mutual_nn_matching_torch
    nn12 = similarity.max(dim=1)[1]
RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity

My guess is that there is an image, for which no keypoints are detected (yes, there is one such image), desc1 or desc2 array is empty, similarity matrix is empty and therefore the max operation fails. Implementing a test somewhere, checking if desc1 or desc2 are not empty (and dealing with the empty ones) would be great. I've seen the issue only with CAPS, but it could probably appear also for other methods.

Thank you very much!

aachen evaluation

Hi @GrumpyZhou Thanks for your great works!

I use patch2pix + superglue as matcher for aachen evaluation, and use eval_aachen.py script. I can get keypoints.h5 and matches.h5, but an error was encountered while running triangulation, the error as follows:
"Keypoint format not supported"

I find the format slightly different from the hloc, any suggestion? Did you test patch2pix + superglue on aachen ? Thanks!

FileNotFoundError: no 'cameras.bin' when test loftr on aachen

Hi, I use your default code and yml to test loftr on aachen benchmark as follow:
python -m immatch.eval_aachen --gpu 1 --config 'loftr' --colmap /usr/bin/colmap --benchmark_name 'aachen'
After running for a dozen hours, I met this error:

runpy.py 194 _run_module_as_main
return _run_code(code, main_globals, None,

runpy.py 87 _run_code
exec(code, run_globals)

eval_aachen.py 84 <module>
eval_aachen(args)

eval_aachen.py 56 eval_aachen
reconstruct_database_pairs(args)

localize_sfm_helper.py 107 reconstruct_database_pairs
triangulation.main(

triangulation.py 180 main
image_ids = create_db_from_model(empty_sfm_model, database)

triangulation.py 22 create_db_from_model
cameras = read_cameras_binary(str(empty_model / 'cameras.bin'))

read_write_model.py 135 read_cameras_binary
with open(path_to_model_file, "rb") as fid:

FileNotFoundError:
2
No such file or directory
outputs/aachen/empty_sfm/cameras.bin

the specific config is:

aachen:
    <<: *default
    match_threshold: 0.0 # Save all matches
    pairs: ['pairs-db-covis20.txt', 'pairs-query-netvlad50.txt']
    npts: 4096
    imsize: 1024
    qt_dthres: 4
    qt_psize: 48
    qt_unique: True
    ransac_thres: [20]
    sc_thres: 0.2 # Filtering during quantization
    covis_cluster: True

I have no idea what`s going on, can u give me some advice? thank!
@GrumpyZhou

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.