Skip to content

Commit

Permalink
load parameter if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
MRo47 committed Sep 30, 2024
1 parent 3f24a95 commit 215df84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class NNParamHandler : public BaseParamHandler {
json data = json::parse(f);
if(data.contains("model") && data.contains("nn_config")) {
auto modelPath = getModelPath(data);
declareAndLogParam("i_model_path", modelPath);
modelPath = declareAndLogParam("i_model_path", modelPath);
if(!getParam<bool>("i_disable_resize")) {
setImageManip(modelPath, imageManip);
}
Expand Down

0 comments on commit 215df84

Please sign in to comment.