Fix labels padding for Letterbox with center=False (#17728)
This commit is contained in:
parent
426879d80d
commit
29361e46d9
1 changed files with 1 additions and 1 deletions
|
|
@ -1591,7 +1591,7 @@ class LetterBox:
|
||||||
labels["ratio_pad"] = (labels["ratio_pad"], (left, top)) # for evaluation
|
labels["ratio_pad"] = (labels["ratio_pad"], (left, top)) # for evaluation
|
||||||
|
|
||||||
if len(labels):
|
if len(labels):
|
||||||
labels = self._update_labels(labels, ratio, dw, dh)
|
labels = self._update_labels(labels, ratio, left, top)
|
||||||
labels["img"] = img
|
labels["img"] = img
|
||||||
labels["resized_shape"] = new_shape
|
labels["resized_shape"] = new_shape
|
||||||
return labels
|
return labels
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue