I'm studying the Caltech101 computer vision dataset using Matlab..
I wanted to classify and train the images of caltech-101 using phow_caltech.m
file
but there was a problem, I don't know how to change the categories...
these are what I did.
- setup lv_setup
- test version : vl_version verbose OK
- vl_demo OK
- make m_file phow_caltech101.m (copy)
- I downloaded caltech101 images at [here][2] by myself and copied to
data/caltech-101
>>phow_caltech101
(in command widnow)- I saw fixed example categories (BACKGROUND_Goole, Faces, Faces_easy, Leopards, Motobikes)
I've tried to change the example categories(BACKGROUND_Goole, Faces, Faces_easy, Leopards, Motobikes)
I want to use categories ( accordion, airplanes, anchor, ant in caltech-101)
I changed some codes of phow_caltech101.m but it didn't work...
plz give me some advice ... help me
I look forward to replying your mail or answer thank you~!
C:\VLFEAT\data\caltech-101 ( there are many image folders )
conf.calDir = 'data/caltech-101' ; ( I changed like this in phow_caltech101.m file)
From the help header to
phow_caltech101
:Create a folder (say
'data/myclasses'
) containing the new classes (image collections) and haveconf.caldir
point to it, inphow_caltech101.m
. That should be the first thing you change. There should be no need to changeconf.prefiX
if you are still putting the classes underdata/....
but you need to adjustconf.numtrain
to be the number of training sets you want to use.caveat: my answer is based entirely on the documentation, I have not run the software.
Edit
Rather than attempt to run the script directly, start by trying to run the following lines at the matlab prompt, to check that you set up your folders correctly:
If the folder does not exist or the contents being listed as
classes
are incorrect you need to adjustconf.calDir
or the location of your data.