[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 <roman.kazantsev@intel.com>
This commit is contained in:
Jorge Ragde 2024-06-11 07:16:48 -07:00 committed by GitHub
parent 91b3977169
commit 8eaa65e026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class TestHSVToRGB(CommonTFLayerTest):
elif self.special_case == "Grayscale Image": elif self.special_case == "Grayscale Image":
images_shape = inputs_info['images:0'] images_shape = inputs_info['images:0']
inputs_data = {} 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: else:
images_shape = inputs_info['images:0'] images_shape = inputs_info['images:0']
inputs_data = {} inputs_data = {}