mirror of
https://github.com/open-mmlab/mmyolo.git
synced 2025-06-03 15:00:20 +08:00
fix pad_param error (#354)
This commit is contained in:
parent
0e28babbee
commit
e57edb65c6
@ -285,7 +285,7 @@ class LetterResize(MMDET_Resize):
|
||||
if len(results['pad_param']) != 4:
|
||||
return
|
||||
results['gt_bboxes'].translate_(
|
||||
(results['pad_param'][2], results['pad_param'][1]))
|
||||
(results['pad_param'][2], results['pad_param'][0]))
|
||||
|
||||
if self.clip_object_border:
|
||||
results['gt_bboxes'].clip_(results['img_shape'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user