From e6e8603b8e5a42f198965b8b512f094b5eff4f6d Mon Sep 17 00:00:00 2001 From: wangxinxin08 <69842442+wangxinxin08@users.noreply.github.com> Date: Tue, 6 Apr 2021 14:34:07 +0800 Subject: [PATCH] fix cpp infer for lack of gflags (#2499) --- deploy/cpp/src/main.cc | 1 + static/deploy/cpp/src/main.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/deploy/cpp/src/main.cc b/deploy/cpp/src/main.cc index 00dd32568..ca25a46e1 100644 --- a/deploy/cpp/src/main.cc +++ b/deploy/cpp/src/main.cc @@ -29,6 +29,7 @@ #endif #include "include/object_detector.h" +#include DEFINE_string(model_dir, "", "Path of inference model"); diff --git a/static/deploy/cpp/src/main.cc b/static/deploy/cpp/src/main.cc index f2b4b1ad2..2e3b356c8 100644 --- a/static/deploy/cpp/src/main.cc +++ b/static/deploy/cpp/src/main.cc @@ -29,6 +29,7 @@ #endif #include "include/object_detector.h" +#include DEFINE_string(model_dir, "", "Path of inference model"); -- GitLab