/
computePlaceRec_1N_trainset.m
59 lines (46 loc) · 1.49 KB
/
computePlaceRec_1N_trainset.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
50
51
52
53
54
55
56
57
58
59
clc
clear
close all
%addpath('Features_Berlin');
addpath('Class_Files');
addpath('Load_Files');
%addpath('Features');
%addpath('Features_Nordland_Cont');
addpath('D:\MATLAB_HPC_Offline\Features');
%addpath('Features_HPCTest');
addpath('Helper_Funcs');
Dataset = 'Nordland';
%Dataset = 'Berlin';
saveFolder = 'Nord_TrainSet_Results/';
mkdir(saveFolder);
% CNNHeat --> 1
% SAD --> 2
% HOG --> 3
% ORB --> 4
% SURF --> 5
% NetVLAD --> 6
% CNNWhole --> 7
% BoW --> 8
% KAZE --> 9
% OLO --> 10
% Gist --> 11
%x is level number, y is number within level
methodStruct.Names(1,1) = 1;
%methodStruct.Names(1,2) = 11;
methodStruct.Names(2,1) = 6;
%methodStruct.Names(2,2) = 7;
methodStruct.Names(3,1) = 9;
%methodStruct.Names(3,2) = 10;
methodStruct.NumCands(1) = 100;
methodStruct.NumCands(2) = 10;
methodStruct.NumCands(3) = 1;
HPC = 0; %setting to change if run locally (0), or on HPC server (1).
Win = 1; %OS setting (Windows = 1 or Ubuntu = 0)
GPUJob = 1; %Used to remove GPU from HPC options, in order to run A HUGE NUMBER OF JOBS.
experimentNumber = 1;
debugMode = 0;
setID = 0; %0 = train set, 1 = test set.
w(1) = 0.5; w(2) = 0.75; w(3) = 1; %number from 0-1
%ideally, want to weight the final layer more than the earlier layers.
Multi_SLAM_Fusion(experimentNumber, Dataset, saveFolder, methodStruct,...
HPC, Win, GPUJob, debugMode, setID, w);