From the help header to phow_caltech101
:
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.
Create a folder (say 'data/myclasses'
) containing the new classes (image collections) and have conf.caldir
point to it, in phow_caltech101.m
. That should be the first thing you change. There should be no need to change conf.prefiX
if you are still putting the classes under data/....
but you need to adjust conf.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:
% the following line should contain the path to your data...
conf.calDir = 'data/caltech-101'; % <-- change this line if necessary
% make sure matlab finds the folder with your data
exist(conf.calDir, 'dir') % should return a "1"
% check the contents of the calibration data folder
classes = dir(conf.calDir)
If the folder does not exist or the contents being listed as classes
are incorrect you need to adjust conf.calDir
or the location of your data.