Skip to content

Commit dd6fb6d

Browse files
authored
AC: fix clip accuracy update result (openvinotoolkit#910)
l
1 parent fd5468c commit dd6fb6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/accuracy_checker/accuracy_checker/metrics/classification.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ def update(self, annotation, prediction):
152152
self.video_accuracy.update(video_top_label, self.previous_video_label)
153153
self.video_avg_prob = AverageProbMeter()
154154

155-
video_avg = self.video_avg_prob.update(annotation.label, prediction.scores)
155+
self.video_avg_prob.update(annotation.label, prediction.scores)
156156

157157
clip_accuracy = self.clip_accuracy.update(annotation.label, prediction.label)
158158

159159
self.previous_video_id = video_id
160160
self.previous_video_label = annotation.label
161161

162-
return [clip_accuracy, video_avg]
162+
return clip_accuracy
163163

164164
def evaluate(self, annotations, predictions):
165165
self.meta['names'] = ['clip_accuracy', 'video_accuracy']

0 commit comments

Comments
 (0)