Update YOLOv5 YAMLs to 'u' YAMLs (#800)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
0d182e80f1
commit
21ae321bc2
17 changed files with 68 additions and 46 deletions
|
|
@ -23,7 +23,7 @@ class ClassificationPredictor(BasePredictor):
|
|||
results = []
|
||||
for i, pred in enumerate(preds):
|
||||
shape = orig_img[i].shape if isinstance(orig_img, list) else orig_img.shape
|
||||
results.append(Results(probs=pred.softmax(0), orig_shape=shape[:2]))
|
||||
results.append(Results(probs=pred, orig_shape=shape[:2]))
|
||||
return results
|
||||
|
||||
def write_results(self, idx, results, batch):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue