fix pad_param error (#354)

pull/359/head
Haian Huang(深度眸) 2022-12-08 11:45:22 +08:00 committed by GitHub
parent 0e28babbee
commit e57edb65c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'])