ultralytics 8.3.39 fix classification validation loss scaling (#17851)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
29826241a0
commit
e60992214c
3 changed files with 3 additions and 3 deletions
|
|
@ -54,6 +54,6 @@ class ClassificationPredictor(BasePredictor):
|
|||
orig_imgs = ops.convert_torch2numpy_batch(orig_imgs)
|
||||
|
||||
return [
|
||||
Results(orig_img, path=img_path, names=self.model.names, probs=pred)
|
||||
Results(orig_img, path=img_path, names=self.model.names, probs=pred.softmax(0))
|
||||
for pred, orig_img, img_path in zip(preds, orig_imgs, self.batch[0])
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue