Skip to content
Snippets Groups Projects
Unverified Commit 4ad7b278 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

remove from result dict and fix unit tests (#2352)

parent 79241e11
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,6 @@ class LoadMultiChannelImageFromFiles(object):
results['ori_shape'] = img.shape
# Set initial values for default meta_keys
results['pad_shape'] = img.shape
results['flip'] = False
results['scale_factor'] = 1.0
num_channels = 1 if len(img.shape) < 3 else img.shape[2]
results['img_norm_cfg'] = dict(
......
......@@ -24,7 +24,6 @@ class TestLoading(object):
assert results['img_shape'] == (288, 512, 3)
assert results['ori_shape'] == (288, 512, 3)
assert results['pad_shape'] == (288, 512, 3)
assert results['flip'] is False
assert results['scale_factor'] == 1.0
np.testing.assert_equal(results['img_norm_cfg']['mean'],
np.zeros(3, dtype=np.float32))
......@@ -74,7 +73,6 @@ class TestLoading(object):
assert results['img_shape'] == (288, 512, 3, 2)
assert results['ori_shape'] == (288, 512, 3, 2)
assert results['pad_shape'] == (288, 512, 3, 2)
assert results['flip'] is False
assert results['scale_factor'] == 1.0
assert repr(transform) == transform.__class__.__name__ + \
" (to_float32=False, color_type='unchanged')"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment