Skip to content

Commit

Permalink
FIXME restore as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Sep 28, 2023
1 parent 2890843 commit c20bd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmyolo/datasets/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _resize_img(self, results: dict):
results['pad_param_origin'] = results['pad_param'] * \
np.repeat(ratio, 2)

if 'gt_masks' in results:
if self.half_pad_param or 'gt_masks' in results:
results['pad_param'] = np.array(
[padding_h / 2, padding_h / 2, padding_w / 2, padding_w / 2],
dtype=np.float32)
Expand Down

0 comments on commit c20bd14

Please sign in to comment.