Skip to content

Commit

Permalink
fix: verify confidence tc value
Browse files Browse the repository at this point in the history
  • Loading branch information
tinhnguyen-starglobal committed Jul 22, 2022
1 parent 8dd212b commit da7487a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ALTOAI-Detect/MLModels/YOLO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class YOLO {

let (detectedClass, bestClassScore) = class_probs.argmax()

let confidenceInClass = bestClassScore * confidence
let confidenceInClass = tc

if confidenceInClass >= confidenceThreshold {
let rect = CGRect(x: CGFloat(tx) - (CGFloat(tw)/2), y: CGFloat(ty) - (CGFloat(th)/2),
Expand Down

1 comment on commit da7487a

@fritz-ebner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I commented with my personal github (graySquirrel)

Please sign in to comment.