首页 > 代码库 > 代码学习(一)

代码学习(一)

train for Discriminative patches for pascal 2007 subset

  1. train:
  2. assimilate: 

detect discriminative patches

  1. load model( svm训练的模型总积  5481clusters 1984dimension features)
  2.  load data and get data info: size
  3. construct detection params
  4. detector.detectPresenceUsingEntDet() 用model对该图像中patch属于哪个clusters计算score 

附:

matlab code,对应论文:Unsupervised Discovery of Mid-Level Discriminative Patches Saurabh Singh, Abhinav Gupta, and Alexei A. Efros]

其中VisualEntityDetectors:是matlab中定义的类 

代码学习(一)