From 8eaa65e0268a6a2f5a0db6395efc2c5cbb8527ea Mon Sep 17 00:00:00 2001 From: Jorge Ragde Date: Tue, 11 Jun 2024 07:16:48 -0700 Subject: [PATCH] [TF FE Tests] Change HSVToRGB Unit Test To Test Grayscale Image (#24935) ### Details: - Currently, the unit test for HSVToRGB is creating a tensor of all ones in the Grayscale special case as mentioned in [#24875](https://github.com/openvinotoolkit/openvino/pull/24875). Since the images are expected to be in HSV and not RGB format, this will create images that are green, and not gray. Grayscale in HSV can be achieved by creating a tensor with HSV entries of [0, 0, .5]. ### Tickets: - N/A --------- Co-authored-by: Roman Kazantsev --- tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py b/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py index 0960801f957..9f3ab9845fb 100644 --- a/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py +++ b/tests/layer_tests/tensorflow_tests/test_tf_HSVToRGB.py @@ -18,7 +18,7 @@ class TestHSVToRGB(CommonTFLayerTest): elif self.special_case == "Grayscale Image": images_shape = inputs_info['images:0'] inputs_data = {} - inputs_data['images:0'] = np.ones(images_shape).astype(self.input_type) * np.random.rand() + inputs_data['images:0'] = np.broadcast_to([0, 0, 0.5], images_shape).astype(self.input_type) else: images_shape = inputs_info['images:0'] inputs_data = {}