删除调试信息
This commit is contained in:
parent
98a41a69df
commit
c7ec975874
@ -170,16 +170,6 @@ public:
|
||||
for (int i = 0; i < dim_; ++i) e.emb[static_cast<size_t>(i)] = static_cast<float>(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<int>(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<int>(emb.size()); ++di) {
|
||||
dbg += std::to_string(emb[di]) + " ";
|
||||
}
|
||||
LogInfo(dbg);
|
||||
}
|
||||
|
||||
FaceGallery::SearchResult sr;
|
||||
if (gallery && gallery->Size() > 0) {
|
||||
sr = gallery->SearchTop2(emb);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user