From c7ec9758741f330be9349a3cd3c0f4e21b2044df Mon Sep 17 00:00:00 2001 From: sladro Date: Thu, 8 Jan 2026 16:16:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/ai_face_recog/ai_face_recog_node.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/ai_face_recog/ai_face_recog_node.cpp b/plugins/ai_face_recog/ai_face_recog_node.cpp index a12545e..2375fc9 100644 --- a/plugins/ai_face_recog/ai_face_recog_node.cpp +++ b/plugins/ai_face_recog/ai_face_recog_node.cpp @@ -170,16 +170,6 @@ public: for (int i = 0; i < dim_; ++i) e.emb[static_cast(i)] = static_cast(dp[i]); } L2Normalize(e.emb); - - // DEBUG: 打印数据库中 embedding 的前 8 个值 - { - std::string dbg = "[FaceGallery] db emb[0:8] for " + e.name + ": "; - for (int di = 0; di < 8 && di < static_cast(e.emb.size()); ++di) { - dbg += std::to_string(e.emb[di]) + " "; - } - std::cerr << dbg << "\n"; - } - entries_.push_back(std::move(e)); } @@ -909,15 +899,6 @@ private: } L2Normalize(emb); - // DEBUG: 打印推理得到的 embedding 前 8 个值 - { - std::string dbg = "[ai_face_recog] infer emb[0:8]: "; - for (int di = 0; di < 8 && di < static_cast(emb.size()); ++di) { - dbg += std::to_string(emb[di]) + " "; - } - LogInfo(dbg); - } - FaceGallery::SearchResult sr; if (gallery && gallery->Size() > 0) { sr = gallery->SearchTop2(emb);