MTF
RegNetParams.h
1 #ifndef MTF_RG_PARAMS_H
2 #define MTF_RG_PARAMS_H
3 
4 #include <vector>
5 #include <string>
6 
7 #define RG_MAX_ITERS 10
8 #define RG_EPSILON 0.01
9 #define RG_N_SAMPLES 1000
10 #define RG_N_TREES 6
11 #define RG_CONFIG_FILE "Config/nn.cfg"
12 #define RG_ADDITIVE_UPDATE 1
13 #define RG_SHOW_SAMPLES 1
14 #define RG_ADD_POINTS 0
15 #define RG_REMOVE_POINTS 0
16 #define RG_LOAD_INDEX 0
17 #define RG_SAVE_INDEX 0
18 #define RG_INDEX_FILE_TEMPLATE "nn_saved_index"
19 #define RG_DEBUG_MODE false
20 #define NEPOCHS 10
21 #define BS 128
22 #define PREPROC 1
23 #define SOLVERF ""
24 #define TRAINF ""
25 #define MEANF ""
26 #define DEBUG 0
27 #define PRETRAINED 0
28 
29 typedef std::vector<double> vectord;
30 typedef std::vector<vectord> vectorvd;
31 
32 namespace mtf{
33  struct RegNetParams{
34  int max_iters;
35  int n_samples;
36  double epsilon;
37 
38  vectorvd ssm_sigma;
39  vectorvd ssm_mean;
40  vectord pix_sigma;
41 
42  bool additive_update;
43  int show_samples;
44  int add_points;
45  int remove_points;
46 
47  bool save_index;
48  bool load_index;
49  std::string saved_index_dir;
50 
53  bool debug_mode;
54 
55  int nepochs;
56  int bs;
57  bool enable_preproc;
58  char *solver_file, *train_file, *mean_file;
59  bool debug;
60  bool load_pretrained;
61 
62  RegNetParams(int _max_iters, int _n_samples, double _epsilon,
63  const vectorvd &_ssm_sigma, vectorvd _ssm_mean,
64  vectord _pix_sigma, bool _additive_update, int _show_samples,
65  int _add_points, int _remove_points,bool load_index,
66  bool _save_index, std::string _saved_index_dir,
67  bool _debug_mode, int _n_epochs, int _bs,
68  bool _preproc, char *_solver_f, char *_train_f,
69  char *_mean_f, bool _debug, bool _pretrained);
70  RegNetParams(const RegNetParams *params = nullptr);
71  };
72 }
73 
74 #endif
75 
Definition: RegNetParams.h:33
int n_samples
maximum iterations of the NN algorithm to run for each frame
Definition: RegNetParams.h:35
Definition: RegNetParams.h:32
vectorvd ssm_sigma
maximum L2 norm of the state update vector at which to stop the iterations
Definition: RegNetParams.h:38
bool debug_mode
decides whether logging data will be printed for debugging purposes; only matters if logging is enabl...
Definition: RegNetParams.h:53