VLFeat installation for Python

女生的网名这么多〃 提交于 2021-02-09 11:52:51

问题


I am new to Python and I want to install VLFeat on Ubuntu (13.04).

I am using Eclipse 3.8. For Python, I have installed the PyDev extension on Eclipse.

I have installed Numpy, but I don't know how to install VLFeat. I tried to use their website, but I can't get anything for Python. I have downloaded packages, but I don't know how to install them.


回答1:


The Menpo Project provides a wrapper around VLFeat: it's called cyvlfeat.

To install cyvlfeat, we strongly suggest you use conda:

conda install -c menlo cyvlfeat

If you don't want to use conda, your mileage will vary. In particular, you must satisfy the linking/compilation requirements for the package, which include the vlfeat dynamic library.

In other words, the nice thing about installing with conda is that it will install (and link) VLFeat dependencies as well.

It may not include all functionalities of VLFeat. Current State as of March 2017:

  • fisher
    • fisher
  • generic
    • set_simd_enabled, get_simd_enabled, cpu_has_avx, cpu_has_sse3, cpu_has_sse2
    • get_num_cpus,
    • get_max_threads, set_num_threads, get_thread_limit
  • hog
    • hog
  • kmeans
    • kmeans
    • kmeans_quantize
    • ikmeans, ikmeans_push
    • hikmeans, hikmeans_push
  • sift
    • dsift
    • sift

Relevant reading

Dev blog by Simmi Mourya. This includes descriptions and usage examples.


More alternatives:

  • vlfeat-ctypes: minimal VLFeat interface for python
  • pyvlfeat fork by jchazalon: A high-level Python wrapper around a subset of the VLFeat library [more recently updated than the original]

Note about the IDE

Installing python packages should be independent of the IDE (Eclipse + PyDev, in the OP case), as long as the interpreter and libraries paths are correctly set up.

Note about conda

It is not required to install the Anaconda distribution in order to use conda. The much lighter Miniconda is enough.




回答2:


Assuming you are getting VLFeat from the Python Package Index, the instructions are

Download distribution, extract it, get to command prompt and type: 
$ python setup.py install 


来源:https://stackoverflow.com/questions/20104720/vlfeat-installation-for-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!