From 4c3954ec7661de8b1f6c9cd57e9c266487acca1f Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sat, 18 Dec 2021 17:44:20 +0100 Subject: [PATCH] debug: add logs for inference result --- pkg/steering/steering.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/steering/steering.go b/pkg/steering/steering.go index 0dd289d..a243d63 100644 --- a/pkg/steering/steering.go +++ b/pkg/steering/steering.go @@ -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)) return 0., 0., nil } + zap.S().Debugf("raw result: %v", results) + sort.Slice(results, func(i, j int) bool { return results[i].score > results[j].score })