debug: add logs for inference result

This commit is contained in:
Cyrille Nofficial 2021-12-18 17:44:20 +01:00
parent 67d1a1d8e5
commit 4c3954ec76

View File

@ -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
}) })