Skip to content

Commit

Permalink
Show label confidence in percentages
Browse files Browse the repository at this point in the history
  • Loading branch information
dme-compunet committed Jan 15, 2025
1 parent 4616a3c commit 54d5190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/YoloSharp/Data/YoloPrediction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public abstract class YoloPrediction

public override string ToString()
{
return $"{Name.Name} ({Confidence:N})";
return $"{Name.Name} ({(int)(Confidence * 100f)}%)";
}
}

0 comments on commit 54d5190

Please sign in to comment.