Update transforms.py (#2932)

* Update transforms.py

* format with yapf

Co-authored-by: Kai Chen <chenkaidev@gmail.com>
pull/2948/head
daemon 5 years ago committed by GitHub
parent 4102944d77
commit 0372b3e86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mmdet/datasets/pipelines/transforms.py

@ -294,8 +294,7 @@ class Pad(object):
def _pad_masks(self, results):
pad_shape = results['pad_shape'][:2]
for key in results.get('mask_fields', []):
results[key] = results[key].pad(
pad_shape[:2], pad_val=self.pad_val)
results[key] = results[key].pad(pad_shape, pad_val=self.pad_val)
def _pad_seg(self, results):
for key in results.get('seg_fields', []):

Loading…
Cancel
Save