fix resize error

pull/2133/head
huanghaian 2022-06-23 17:41:34 +08:00 committed by zhouzaida
parent 29135c22ab
commit 864942be2f
2 changed files with 0 additions and 2 deletions

View File

@ -187,7 +187,6 @@ class Resize(BaseTransform):
backend=self.backend)
results['img'] = img
results['img_shape'] = img.shape[:2]
results['scale'] = img.shape[:2][::-1]
results['scale_factor'] = (w_scale, h_scale)
results['keep_ratio'] = self.keep_ratio

View File

@ -92,7 +92,6 @@ class TestResize:
transform = Resize(scale=(2000, 2000), keep_ratio=True)
results = transform(copy.deepcopy(data_info))
assert results['img'].shape[:2] == (2000, 1200)
assert results['scale'] == (1200, 2000)
assert results['scale_factor'] == (1200 / 800, 2000 / 1333)
# test resize_bboxes/seg/kps