diff --git a/tests/ut/data/dataset/golden/normalize_01_c_result.npz b/tests/ut/data/dataset/golden/normalize_01_c_result.npz index 031e48f4f56..9222f485712 100644 Binary files a/tests/ut/data/dataset/golden/normalize_01_c_result.npz and b/tests/ut/data/dataset/golden/normalize_01_c_result.npz differ diff --git a/tests/ut/data/dataset/golden/normalize_01_to_pil_result.npz b/tests/ut/data/dataset/golden/normalize_01_to_pil_result.npz index 6c8abf960dd..9d794aa5f23 100644 Binary files a/tests/ut/data/dataset/golden/normalize_01_to_pil_result.npz and b/tests/ut/data/dataset/golden/normalize_01_to_pil_result.npz differ diff --git a/tests/ut/data/dataset/golden/normalize_02_to_pil_result.npz b/tests/ut/data/dataset/golden/normalize_02_to_pil_result.npz index a4fc2715fe7..82ab777c10b 100644 Binary files a/tests/ut/data/dataset/golden/normalize_02_to_pil_result.npz and b/tests/ut/data/dataset/golden/normalize_02_to_pil_result.npz differ diff --git a/tests/ut/data/dataset/golden/normalize_03_to_pil_result.npz b/tests/ut/data/dataset/golden/normalize_03_to_pil_result.npz index 6f136e324cf..44db3250a6a 100644 Binary files a/tests/ut/data/dataset/golden/normalize_03_to_pil_result.npz and b/tests/ut/data/dataset/golden/normalize_03_to_pil_result.npz differ diff --git a/tests/ut/data/dataset/golden/normalize_04_to_pil_result.npz b/tests/ut/data/dataset/golden/normalize_04_to_pil_result.npz index 1a5f55c69f0..a51404c5c38 100644 Binary files a/tests/ut/data/dataset/golden/normalize_04_to_pil_result.npz and b/tests/ut/data/dataset/golden/normalize_04_to_pil_result.npz differ diff --git a/tests/ut/python/dataset/test_normalize_op.py b/tests/ut/python/dataset/test_normalize_op.py index 83bdf2b51d9..d138c067321 100644 --- a/tests/ut/python/dataset/test_normalize_op.py +++ b/tests/ut/python/dataset/test_normalize_op.py @@ -205,7 +205,7 @@ def test_decode_normalize_op(): num_iter += 1 -def skip_test_normalize_md5_01(): +def test_normalize_md5_01(): """ Test Normalize with md5 check: valid mean and std expected to pass @@ -221,7 +221,7 @@ def skip_test_normalize_md5_01(): save_and_check_md5(data_py, filename2, generate_golden=GENERATE_GOLDEN) -def skip_test_normalize_md5_02(): +def test_normalize_md5_02(): """ Test Normalize with md5 check: len(mean)=len(std)=1 with RGB images expected to pass @@ -310,7 +310,7 @@ def test_normalize_exception_invalid_range(): assert "Input mean_value is not within the required interval of [0.0, 1.0]." in str(e) -def skip_test_normalize_grayscale_md5_01(): +def test_normalize_grayscale_md5_01(): """ Test Normalize with md5 check: len(mean)=len(std)=1 with 1 channel grayscale images expected to pass @@ -322,7 +322,7 @@ def skip_test_normalize_grayscale_md5_01(): save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN) -def skip_test_normalize_grayscale_md5_02(): +def test_normalize_grayscale_md5_02(): """ Test Normalize with md5 check: len(mean)=len(std)=3 with 3 channel grayscale images expected to pass @@ -452,15 +452,15 @@ if __name__ == "__main__": test_decode_normalize_op() test_normalize_op_hwc(plot=True) test_normalize_op_chw(plot=True) - skip_test_normalize_md5_01() - skip_test_normalize_md5_02() + test_normalize_md5_01() + test_normalize_md5_02() test_normalize_exception_unequal_size_1() test_normalize_exception_out_of_range() test_normalize_exception_unequal_size_2() test_normalize_exception_invalid_size() test_normalize_exception_invalid_range() - skip_test_normalize_grayscale_md5_01() - skip_test_normalize_grayscale_md5_02() + test_normalize_grayscale_md5_01() + test_normalize_grayscale_md5_02() test_normalize_grayscale_exception() test_multiple_channels() test_normalize_eager_hwc() diff --git a/tests/ut/python/dataset_deprecated/test_normalize_op.py b/tests/ut/python/dataset_deprecated/test_normalize_op.py index 99f3eaa6ca0..437cd67ec22 100644 --- a/tests/ut/python/dataset_deprecated/test_normalize_op.py +++ b/tests/ut/python/dataset_deprecated/test_normalize_op.py @@ -162,7 +162,7 @@ def test_normalize_op_py(plot=False): num_iter += 1 -def skip_test_normalize_md5_01(): +def test_normalize_md5_01(): """ Feature: Normalize Op Description: Test C++ op and Python op in same dataset pipeline @@ -179,7 +179,7 @@ def skip_test_normalize_md5_01(): save_and_check_md5(data_py, filename2, generate_golden=GENERATE_GOLDEN) -def skip_test_normalize_md5_02(): +def test_normalize_md5_02(): """ Feature: Normalize Op Description: Test Python op with len(mean)=len(std)=1 and RGB images @@ -269,7 +269,7 @@ def test_normalize_exception_invalid_range_py(): assert "Input mean_value is not within the required interval of [0.0, 1.0]." in str(e) -def skip_test_normalize_grayscale_md5_01(): +def test_normalize_grayscale_md5_01(): """ Feature: Normalize Op Description: Test Python op with len(mean)=len(std)=1 and 1 channel grayscale images @@ -282,7 +282,7 @@ def skip_test_normalize_grayscale_md5_01(): save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN) -def skip_test_normalize_grayscale_md5_02(): +def test_normalize_grayscale_md5_02(): """ Feature: Normalize Op Description: Test Python op with len(mean)=len(std)=1 and 3 channel grayscale images @@ -348,12 +348,12 @@ def test_multiple_channels(): if __name__ == "__main__": test_normalize_op_c(plot=True) test_normalize_op_py(plot=True) - skip_test_normalize_md5_01() - skip_test_normalize_md5_02() + test_normalize_md5_01() + test_normalize_md5_02() test_normalize_exception_unequal_size_c() test_normalize_exception_unequal_size_py() test_normalize_exception_invalid_size_py() test_normalize_exception_invalid_range_py() - skip_test_normalize_grayscale_md5_01() - skip_test_normalize_grayscale_md5_02() + test_normalize_grayscale_md5_01() + test_normalize_grayscale_md5_02() test_normalize_grayscale_exception()