Skip to content

Commit

Permalink
update nn params
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Oct 4, 2024
1 parent 76e2b66 commit 47de5ab
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,15 @@ class NNParamHandler : public BaseParamHandler {
json data = json::parse(f);
if(data.contains("model") && data.contains("nn_config")) {
auto modelPath = getModelPath(data);
setImageManip(modelPath, imageManip);
modelPath = declareAndLogParam<std::string>("i_model_path", modelPath);
if(!getParam<bool>("i_disable_resize")) {
setImageManip(modelPath, imageManip);
}
nn->setBlobPath(modelPath);
nn->setNumPoolFrames(4);
nn->setNumInferenceThreads(2);
nn->setNumPoolFrames(declareAndLogParam<int>("i_num_pool_frames", 4));
nn->setNumInferenceThreads(declareAndLogParam<int>("i_num_inference_threads", 2));
nn->input.setBlocking(false);
declareAndLogParam<int>("i_max_q_size", 30);
setNNParams(data, nn);
}
}
Expand Down

0 comments on commit 47de5ab

Please sign in to comment.