Coder Social home page Coder Social logo

Problem to use sift in Vlfeat about pcv HOT 7 OPEN

jesolem avatar jesolem commented on August 27, 2024
Problem to use sift in Vlfeat

from pcv.

Comments (7)

jesolem avatar jesolem commented on August 27, 2024

Did you add the full (absolute) path to the env variable?

from pcv.

willard-yuan avatar willard-yuan commented on August 27, 2024

Yes, I do. I test it under Windows 7 OS. After I add the full path to the env variable, It throws these error:

Traceback (most recent call last):
  File "F:/dropbox/Dropbox/translation/pcv-notebook/ch02/ch02_sift.py", line 14, in <module>
    l1, d1 = sift.read_features_from_file('empire.sift')
  File "C:\Python27\lib\site-packages\PCV\localdescriptors\sift.py", line 30, in read_features_from_file
    f = loadtxt(filename)
  File "C:\Python27\lib\site-packages\numpy\lib\npyio.py", line 729, in loadtxt
processed tmp.pgm to empire.sift
    fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: 'empire.sift'

The error indicates it doesn't find the sift.exe. To solve this problem, I bulid a folder .\\utils\\win32vlfeat\\sift.exe to contains the VLfeat. It's here. I don't think it's not a good way to solve this problem. Is there a perfect way to solve this problem?

from pcv.

yc-kata avatar yc-kata commented on August 27, 2024

It's a good way to this question, I think。

At 2014-08-12 08:31:59, "Yong Yuan" [email protected] wrote:

Yes, I do. I test it under Windows 7 OS. After I add the full path to the env variable, It throws these error:

Traceback (most recent call last):
File "F:/dropbox/Dropbox/translation/pcv-notebook/ch02/ch02_sift.py", line 14, in
l1, d1= sift.read_features_from_file('empire.sift')
File "C:\Python27\lib\site-packages\PCV\localdescriptors\sift.py", line 30, in read_features_from_file
f= loadtxt(filename)
File "C:\Python27\lib\site-packages\numpy\lib\npyio.py", line 729, in loadtxt
processed tmp.pgm to empire.sift
fh= iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: 'empire.sift'

The error indicates it doesn't find the sift.exe. To solve this problem, I bulid a folder .\utils\win32vlfeat\sift.exe to contains the VLfeat. It's here. I don't think it's not a good way to solve this problem. Is there a perfect way to solve this problem?


Reply to this email directly or view it on GitHub.

from pcv.

willard-yuan avatar willard-yuan commented on August 27, 2024

It works, but not perfect. I hope to find a method which doesn't need to modify the source code sift.py of library PCV.

from pcv.

jesolem avatar jesolem commented on August 27, 2024

People seem to have problems with the VLFeat executable. I'm going to try to replace that for the next edition. Thanks all.

from pcv.

willard-yuan avatar willard-yuan commented on August 27, 2024

Great, I can't wait to read it.

from pcv.

ngunhaSO avatar ngunhaSO commented on August 27, 2024

@jesolem yes, I would love to read your next edition where you can replace the VLFeat executable by something less platform dependent. Thanks!

from pcv.

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.