vlfeat-0.9.18


vlfeat-0.9.18,在matlab及其他工具内使用特别好用,简单方便
资源截图
代码片段和文件信息
function phow_caltech101()
% PHOW_CALTECH101 Image classification in the Caltech-101 dataset
%   This program demonstrates how to use VLFeat to construct an image
%   classifier on the Caltech-101 data. The classifier uses PHOW
%   features (dense SIFT) spatial histograms of visual words and a
%   Chi2 SVM. To speedup computation it uses VLFeat fast dense SIFT
%   kd-trees and homogeneous kernel map. The program also
%   demonstrates VLFeat PEGASOS SVM solver although for this small
%   dataset other solvers such as LIBLINEAR can be more efficient.
%
%   By default 15 training images are used which should result in
%   about 64% performance (a good performance considering that only a
%   single feature type is being used).
%
%   Call PHOW_CALTECH101 to train and test a classifier on a small
%   subset of the Caltech-101 data. Note that the program
%   automatically downloads a copy of the Caltech-101 data from the
%   Internet if it cannot find a local copy.
%
%   Edit the PHOW_CALTECH101 file to change the program configuration.
%
%   To run on the entire dataset change CONF.TINYPROBLEM to FALSE.
%
%   The Caltech-101 data is saved into CONF.CALDIR which defaults to
%   ‘data/caltech-101‘. Change this path to the desired location for
%   instance to point to an existing copy of the Caltech-101 data.
%
%   The program can also be used to train a model on custom data by
%   pointing CONF.CALDIR to it. Just create a subdirectory for each
%   class and put the training images there. Make sure to adjust
%   CONF.NUMTRAIN accordingly.
%
%   Intermediate files are stored in the directory CONF.DATADIR. All
%   such files begin with the prefix CONF.PREFIX which can be changed
%   to test different parameter settings without overriding previous
%   results.
%
%   The program saves the trained model in
%   /-model.mat. This model can be used to
%   test novel images independently of the Caltech data.
%
%     load(‘data/baseline-model.mat‘) ; # change to the model path
%     label = model.classify(model im) ;
%

% Author: Andrea Vedaldi

% Copyright (C) 2011-2013 Andrea Vedaldi
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD license (see the COPYING file).

conf.calDir = ‘data/caltech-101‘ ;
conf.dataDir = ‘data/‘ ;
conf.autoDownloadData = true ;
conf.numTrain = 15 ;
conf.numTest = 15 ;
conf.numClasses = 102 ;
conf.numWords = 600 ;
conf.numSpatialX = [2 4] ;
conf.numSpatialY = [2 4] ;
conf.quantizer = ‘kdtree‘ ;
conf.svm.C = 10 ;

conf.svm.solver = ‘sdca‘ ;
%conf.svm.solver = ‘sgd‘ ;
%conf.svm.solver = ‘liblinear‘ ;

conf.svm.biasMultiplier = 1 ;
conf.phowOpts = {‘Step‘ 3} ;
conf.clobber = false ;
conf.tinyProblem = true ;
conf.prefix = ‘baseline‘ ;
conf.randSeed = 1 ;

if conf.tinyProblem
  conf.prefix = ‘tiny‘ ;
  conf.numClasses = 5 ;
  conf.numSpatialX = 2 ;
  conf.numSpatialY = 2 ;
  conf.numWords = 300 ;
  conf.phowOpts = {‘Verbose‘ 2 ‘Sizes‘

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-05-30 09:55  vlfeat-0.9.18
     文件          59  2014-01-31 09:14  vlfeat-0.9.18.gitattributes
     文件         700  2014-01-31 09:14  vlfeat-0.9.18.gitignore
     文件        1365  2014-01-31 09:14  vlfeat-0.9.18COPYING
     文件       11433  2014-01-31 09:14  vlfeat-0.9.18Makefile
     文件       17536  2014-01-31 09:14  vlfeat-0.9.18Makefile.mak
     文件        5997  2014-01-31 09:14  vlfeat-0.9.18README
     目录           0  2014-05-30 09:55  vlfeat-0.9.18apps
     文件       11594  2014-01-31 09:14  vlfeat-0.9.18appsphow_caltech101.m
     目录           0  2014-05-30 09:55  vlfeat-0.9.18apps
ecognition
     文件        5278  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionencodeImage.m
     文件        6905  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionexperiments.m
     文件         822  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionextendDescriptorsWithGeometry.m
     文件        1679  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitiongetDenseSIFT.m
     文件         919  2014-01-31 09:14  vlfeat-0.9.18apps
ecognition
eadImage.m
     文件        2495  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionsetupCaltech256.m
     文件        1197  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionsetupFMD.m
     文件        4024  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionsetupGeneric.m
     文件        2368  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionsetupScene67.m
     文件        5189  2014-01-31 09:14  vlfeat-0.9.18apps
ecognitionsetupVoc.m
     文件        6226  2014-01-31 09:14  vlfeat-0.9.18apps
ecognition rainEncoder.m
     文件        6097  2014-01-31 09:14  vlfeat-0.9.18apps
ecognition raintest.m
     文件        4621  2014-01-31 09:14  vlfeat-0.9.18appssift_mosaic.m
     目录           0  2014-05-30 09:55  vlfeat-0.9.18in
     目录           0  2014-05-30 09:55  vlfeat-0.9.18inglnx86
     文件        8396  2014-01-31 09:14  vlfeat-0.9.18inglnx86aib
     文件      293498  2014-01-31 09:14  vlfeat-0.9.18inglnx86libvl.so
     文件       21717  2014-01-31 09:14  vlfeat-0.9.18inglnx86mser
     文件       26345  2014-01-31 09:14  vlfeat-0.9.18inglnx86sift
     文件        8327  2014-01-31 09:14  vlfeat-0.9.18inglnx86 est_gauss_elimination
     文件        8597  2014-01-31 09:14  vlfeat-0.9.18inglnx86 est_getopt_long
............此处省略2000个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)