We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035605b commit 90a4212Copy full SHA for 90a4212
src/super_gradients/training/models/prediction_results.py
@@ -66,7 +66,7 @@ def draw(self, box_thickness: int = 2, show_confidence: bool = True, color_mappi
66
image = self.image.copy()
67
color_mapping = color_mapping or generate_color_mapping(len(self.class_names))
68
69
- for pred_i in range(len(self.prediction)):
+ for pred_i in np.argsort(self.prediction.confidence):
70
71
class_id = int(self.prediction.labels[pred_i])
72
score = "" if not show_confidence else str(round(self.prediction.confidence[pred_i], 2))
0 commit comments