Skip to content

Commit

Permalink
[update] fix confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
Abandon-ht committed Nov 28, 2024
1 parent d2747b8 commit 234cc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/llm_framework/main_yolo/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class llm_task {
const detection::Object &obj = objects[i];
nlohmann::json output;
output["class"] = mode_config_.cls_name[obj.label];
output["confidence"] = format_float(obj.prob * 100, 2);
output["confidence"] = format_float(obj.prob, 2);
output["bbox"] = nlohmann::json::array();
output["bbox"].push_back(format_float(obj.rect.x, 0));
output["bbox"].push_back(format_float(obj.rect.y, 0));
Expand Down

0 comments on commit 234cc58

Please sign in to comment.