-
Notifications
You must be signed in to change notification settings - Fork 38
/
clean.m
49 lines (43 loc) · 1.1 KB
/
clean.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
function clean(varargin)
% CLEAN Clean installed resources and cached data.
% CLEAN() Clean all installed files by install script.
%
% CLEAN('OptionName',OptionValue) Specify additional options.
%
% Function accepts following options:
%
% Datasets:: false
% Clean all datasets.
%
% Cache:: false
% Delete all cached data.
% Authors: Karel Lenc
% AUTORIGHTS
import helpers.*;
opts.datasets = false;
opts.cache = false;
opts = vl_argparse(opts,varargin);
noInstArgs = {'AutoInstall',false};
installers = {...
VlFeatInstaller(),...
Installer(), ...
benchmarks.RepeatabilityBenchmark(noInstArgs{:}),...
benchmarks.IjcvOriginalBenchmark(noInstArgs{:}),...
benchmarks.helpers.Installer()...
};
if ~ismember(computer,{'PCWIN','PCWIN64'})
installers = [installers ...
{YaelInstaller(),benchmarks.RetrievalBenchmark(noInstArgs{:})}];
end
if opts.datasets
installers = [installers,{...
datasets.VggRetrievalDataset(noInstArgs{:}),...
datasets.VggAffineDataset(noInstArgs{:})}];
end
for installer=installers
installer{:}.clean();
end
if opts.cache
DataCache.deleteAllCachedData();
end
end