Giter Club home page Giter Club logo

Comments (8)

GrumpyZhou avatar GrumpyZhou commented on August 22, 2024

@zhubingerdai

Could you please provide the full command that leads to the error?

from image-matching-toolbox.

zhubingerdai avatar zhubingerdai commented on August 22, 2024

These instructions given in evaluation. md ,I tried every instruction
python -m immatch.eval_hpatches --gpu 0
--config 'superpoint' 'ncnet'
--task 'both' --save_npy
--root_dir .

from image-matching-toolbox.

GrumpyZhou avatar GrumpyZhou commented on August 22, 2024

@zhubingerdai

Sorry I can not reproduce your error again:

(immatch) zhouq@server:~/projects/image-matching-toolbox$ python -m immatch.eval_hpatches --gpu 0 --config 'superpoint' 'ncnet' --task 'both'
Can not import sparsencnet

>>>> Method=SuperPoint Default config: {'class': 'SuperPoint', 'keypoint_threshold': 0.005, 'nms_radius': 4, 'max_keypoints': -1, 'match_threshold': 0.0, 'imsize': -1} Thres: [0.0]
Loaded SuperPoint model
Initialize SuperPoint_r4
Matching thres: 0.0  Save to: None

>>>>Eval hpatches: task=matching+homography method=SuperPoint_r4 scale_H=False rthres=2 thres=[1, 3, 5,10]
  7%|████▉                                                              | 8/108 [00:03<00:43,  2.31it/s]

What's your Konria version?

from image-matching-toolbox.

zhubingerdai avatar zhubingerdai commented on August 22, 2024

Konria version:0.6.5

from image-matching-toolbox.

GrumpyZhou avatar GrumpyZhou commented on August 22, 2024

I tried with the same version, I can not reproduce the bug. I am afraid that you will need to locate the cause of the error first then I can update the repo. But so far I did not find this bug in my environment.

from image-matching-toolbox.

arjunkarpur avatar arjunkarpur commented on August 22, 2024

@zhubingerdai @GrumpyZhou I had the same problem, but was able to resolve it by forcing kornia to an earlier version (e.g. kornia==0.4.1 in setup.py).

According to kornia/kornia#1555 (comment), Kornia recently established a min pytorch version of 1.8.1 (I think in release 0.6.0 - see release note here?). Your install.md says that you tested with pytorch=1.7.0, so this may be causing the problem? I just chose kornia==0.4.1 because it was the latest release when you created the image-matching-toolbox repo (Nov 24, 2020) but anything < 0.6.0 might work.

Unrelated, but @GrumpyZhou you were also missing a dependency on pydegensac in setup.py. I can submit a pull request for these two changes, if you'd like!

from image-matching-toolbox.

GrumpyZhou avatar GrumpyZhou commented on August 22, 2024

@arjunkarpur Hi, Thanks! Actually, I am considering migrating the toolbox to work on a newer version of pytorch. But will do this when I have free time so not exact time schedule for now. I will also add pydegensac dependency.

from image-matching-toolbox.

arjunkarpur avatar arjunkarpur commented on August 22, 2024

@GrumpyZhou cool no problem. I might also suggest upgrading CUDA to 11.0 😁

I think pytorch isn't compatible with CUDA 11.2 and tf2 isn't compatible with CUDA 11.1, so I had to change cudatoolkit=11.0 in environment.yml to make it compatible with both (I use tf2 in my own custom modules)

from image-matching-toolbox.

Related Issues (20)

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.