debug: add logs for inference result
This commit is contained in:
parent
67d1a1d8e5
commit
4c3954ec76
@ -237,6 +237,8 @@ func (p *Part) Value(img image.Image) (float32, float32, error) {
|
|||||||
zap.L().Warn(fmt.Sprintf("none steering with score > %0.2f found", minScore))
|
zap.L().Warn(fmt.Sprintf("none steering with score > %0.2f found", minScore))
|
||||||
return 0., 0., nil
|
return 0., 0., nil
|
||||||
}
|
}
|
||||||
|
zap.S().Debugf("raw result: %v", results)
|
||||||
|
|
||||||
sort.Slice(results, func(i, j int) bool {
|
sort.Slice(results, func(i, j int) bool {
|
||||||
return results[i].score > results[j].score
|
return results[i].score > results[j].score
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user