125 {
126 TypeFusionInitOption one_shot_fuser_options;
127 one_shot_fuser_options.config_path = options.config_path;
129
130 std::string config_file = "ccrf_type_fusion.pb.txt";
131 if (!options.config_file.empty()) {
132 config_file = options.config_file;
133 }
134 config_file =
GetConfigFile(options.config_path, config_file);
135 CcrfTypeFusionConfig config;
137 std::string transition_property_file_path =
139 options.config_path, config.transition_property_file_path());
140 s_alpha_ = config.transition_matrix_alpha();
145 AINFO <<
"transition matrix";
150 }
151 }
153 return true;
154}
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool Init(const TypeFusionInitOption &option) override
INit type fusion
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
bool LoadSingleMatrixFile(const std::string &filename, Matrixd *matrix)
Load single matrix from file
void NormalizeRow(Matrixd *prob)
Compute normalize row of Matrixd
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)