|
|
|
@ -103,7 +103,7 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
|
|
|
|
|
|
|
|
|
|
void CRNNRecognizer::LoadModel(const std::string &model_dir) {
|
|
|
|
|
AnalysisConfig config;
|
|
|
|
|
config.SetModel(model_dir + "/model", model_dir + "/params");
|
|
|
|
|
config.SetModel(model_dir + "/rec.pdmodel", model_dir + "/rec.pdiparams");
|
|
|
|
|
|
|
|
|
|
if (this->use_gpu_) {
|
|
|
|
|
config.EnableUseGpu(this->gpu_mem_, this->gpu_id_);
|
|
|
|
|