Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update comments

  • Loading branch information...
commit a93fd7c81193157af39ddcb61e881028892ca924 1 parent 063ada4
@quantombone quantombone authored
View
8 esvm_generate_dataset.m
@@ -1,5 +1,11 @@
function [Ipos,Ineg] = esvm_generate_dataset(Npos,Nneg)
-%Generate a synthetic dataset of circles
+% Generate a synthetic dataset of circles (see esvm_demo_train_synthetic.m)
+% Copyright (C) 2011-12 by Tomasz Malisiewicz
+% All rights reserved.
+%
+% This file is part of the Exemplar-SVM library and is made
+% available under the terms of the MIT license (see COPYING file).
+% Project homepage: https://github.com/quantombone/exemplarsvm
if nargin == 0
Npos = 3;
View
2  esvm_initialize_exemplars.m
@@ -19,12 +19,12 @@
% allfiles: The names of all outputs (which are .mat model files
% containing the initialized exemplars)
%
-%
% Copyright (C) 2011-12 by Tomasz Malisiewicz
% All rights reserved.
%
% This file is part of the Exemplar-SVM library and is made
% available under the terms of the MIT license (see COPYING file).
+% Project homepage: https://github.com/quantombone/exemplarsvm
% DTstring = '';
View
10 esvm_perform_calibration.m
@@ -1,14 +1,14 @@
function M = esvm_perform_calibration(grid, models, params, CACHE_FILES)
-%% 1. Perform LABOO calibration procedure and 2. Learn a combination
-%matrix M which multiplexes the detection results (by compiling
-%co-occurrence statistics on true positives)
-
+% 1. Perform LABOO calibration procedure and 2. Learn a combination
+% matrix M which multiplexes the detection results (by compiling
+% co-occurrence statistics on true positives)
+%
% Copyright (C) 2011-12 by Tomasz Malisiewicz
% All rights reserved.
%
% This file is part of the Exemplar-SVM library and is made
% available under the terms of the MIT license (see COPYING file).
-
+% Project homepage: https://github.com/quantombone/exemplarsvm
if isfield(params,'CACHE_BETAS') && params.CACHE_BETAS==1%~exist('CACHE_FILES','var')
CACHE_FILES = 1;
View
11 esvm_show_transfer_figure.m
@@ -1,10 +1,15 @@
function NR = esvm_show_transfer_figure(I, models, topboxes, overlays, ...
current_rank, corr)
-%Show a figure with the detections of the exemplar svm model
-%NOTE(TJM): this function needs cleanup
-%Tomasz Malisiewicz(tomasz@cmu.edu)
+% Show a figure with the detections of the exemplar svm model
+% NOTE(TJM): this function needs cleanup
+% Copyright (C) 2011-12 by Tomasz Malisiewicz
+% All rights reserved.
+%
+% This file is part of the Exemplar-SVM library and is made
+% available under the terms of the MIT license (see COPYING file).
% Project homepage: https://github.com/quantombone/exemplarsvm
+
topboxes = topboxes(1:min(2,size(topboxes,1)),:);
%if enabled, try to transfer objects too
View
6 esvm_subset_of_models.m
@@ -1,5 +1,11 @@
function [models,M] = esvm_subset_of_models(models,M,subset)
%Choose a subset of models and a subset of the calibration matrix
+% Copyright (C) 2011-12 by Tomasz Malisiewicz
+% All rights reserved.
+%
+% This file is part of the Exemplar-SVM library and is made
+% available under the terms of the MIT license (see COPYING file).
+% Project homepage: https://github.com/quantombone/exemplarsvm
if ~exist('subset','var')
s1 = cellfun(@(x)size(x.model.w,1),models);
View
7 esvm_update_voc_models_to_local.m
@@ -1,5 +1,10 @@
function models = esvm_update_voc_models_to_local(models, data_directory)
-%Updates models to internally point to local data
+% Updates models to internally point to local data
+% Copyright (C) 2011-12 by Tomasz Malisiewicz
+% All rights reserved.
+%
+% This file is part of the Exemplar-SVM library and is made
+% available under the terms of the MIT license (see COPYING file).
% Project homepage: https://github.com/quantombone/exemplarsvm
for i = 1:length(models)
View
122 old.demo_framing.m
@@ -1,122 +0,0 @@
-%% Showcase of Exemplar Framings
-% In this example, we initialize some exemplars with different
-% framing strategies.
-
-% To generate this pdf, run publish('demo_framing','pdf')
-cls = 'cow';
-VOCYEAR = 'VOC2007';
-
-workdir = '/nfs/baikal/tmalisie/inits11/';
-
-%Initialize dataset
-dataset_params = get_voc_dataset(VOCYEAR, workdir);
-
-%Initialize exemplar stream with 3 exemplars
-stream_set_name = 'trainval';
-stream_max_ex = 3;
-e_stream_set = get_pascal_exemplar_stream(dataset_params, ...
- stream_set_name, ...
- cls, stream_max_ex);
-
-%Initialize scene stream with 3 scenes
-e_scene_stream_set = get_pascal_scene_stream(dataset_params, ...
- stream_set_name, ...
- cls, stream_max_ex);
-
-%% Scene: GoalSize goal_ncells = [100], MAXDIM=[10]
-% This mode will try create a framing which is made up of a target
-% number of cells, subject to one dimension being at most MAXDIM
-clear init_params;
-init_params.sbin = 8;
-init_params.goal_ncells = 100;
-init_params.MAXDIM = 10;
-init_params.init_type = 'goalsize';
-init_params.init_function = @initialize_goalsize_model;
-models_name = ['demo_scene_goalsize'];
-%Initialize exemplars with the exemplar stream
-efiles = exemplar_initialize(dataset_params, e_scene_stream_set, ...
- models_name, init_params);
-
-models = load_all_models(dataset_params, cls, models_name, ...
- efiles);
-
-show_exemplar_frames(models, 5, dataset_params);
-snapnow;
-
-
-%% Scene: GoalSize goal_ncells = [300], MAXDIM=[15]
-% Here is the above example, but allowing for a much finer scene
-% representation
-
-clear init_params;
-init_params.sbin = 8;
-init_params.goal_ncells = 300;
-init_params.MAXDIM = 15;
-init_params.init_type = 'goalsize';
-init_params.init_function = @initialize_goalsize_model;
-models_name = ['demo_scene_goalsize_maxdim'];
-
-%Initialize exemplars with the exemplar stream
-efiles = exemplar_initialize(dataset_params, e_scene_stream_set, ...
- models_name, init_params);
-
-models = load_all_models(dataset_params, cls, models_name, ...
- efiles);
-
-show_exemplar_frames(models, 5, dataset_params);
-snapnow;
-
-%Delete files (only for demo)
-for i = 1:length(efiles)
- delete(efiles{i});
-end
-
-%% Exemplars: GoalSize goal_ncells = [100], MAXDIM=[10]
-% Experiment repeated for exemplars
-clear init_params;
-init_params.sbin = 8;
-init_params.goal_ncells = 100;
-init_params.MAXDIM = 10;
-init_params.init_type = 'goalsize';
-init_params.init_function = @initialize_goalsize_model;
-models_name = ['demo_ex_goalsize'];
-
-%Initialize exemplars with the exemplar stream
-efiles = exemplar_initialize(dataset_params, e_stream_set, ...
- models_name, init_params);
-
-models = load_all_models(dataset_params, cls, models_name, ...
- efiles);
-
-show_exemplar_frames(models, 5, dataset_params);
-snapnow;
-
-%Delete files (only for demo)
-for i = 1:length(efiles)
- delete(efiles{i});
-end
-
-%% Exemplar: FixedFrame hg_size = [8 8]
-% Experiment for fixed-size exemplars
-clear init_params;
-init_params.sbin = 8;
-init_params.hg_size = [8 8];
-init_params.init_type = 'fixedframe';
-init_params.init_function = @initialize_fixedframe_model;
-models_name = ['demo_ex_ff'];
-
-%Initialize exemplars with the exemplar stream
-efiles = exemplar_initialize(dataset_params, e_stream_set, ...
- models_name, init_params);
-
-models = load_all_models(dataset_params, cls, models_name, ...
- efiles);
-
-show_exemplar_frames(models, 5, dataset_params);
-snapnow;
-
-%Delete files (only for demo)
-for i = 1:length(efiles)
- delete(efiles{i});
-end
-
Please sign in to comment.
Something went wrong with that request. Please try again.