2b32895c3178a412a701aba09dbad821d8acbd1a,test/color/test_hsv.py,TestHsvToRgb,test_hsv_to_rgb,#TestHsvToRgb#Any#,99
Before Change
data = torch.rand(3, 5, 5) // 3x5x5
// OpenCV
data_cv = data.numpy().transpose(1, 2, 0).copy()
data_cv[:, :, 0] = 360 * data_cv[:, :, 0]
expected = cv2.cvtColor(data_cv, cv2.COLOR_HSV2RGB)
r_expected = expected[:, :, 0]
After Change
data = torch.rand(3, 5, 5).to(device) // 3x5x5
// OpenCV
data_cv = kornia.tensor_to_image(data.clone())
data_cv[:, :, 0] = 360 * data_cv[:, :, 0]
expected = cv2.cvtColor(data_cv, cv2.COLOR_HSV2RGB)
expected = kornia.image_to_tensor(expected, True).to(device)
r_expected = expected[0]
g_expected = expected[1]
b_expected = expected[2]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: arraiy/torchgeometry
Commit Name: 2b32895c3178a412a701aba09dbad821d8acbd1a
Time: 2019-11-19
Author: edgar.riba@gmail.com
File Name: test/color/test_hsv.py
Class Name: TestHsvToRgb
Method Name: test_hsv_to_rgb
Project Name: hassony2/kinetics_i3d_pytorch
Commit Name: 1f3da600c20e3376b0bb396bba482b1e90b7883c
Time: 2017-11-24
Author: yana.hasson@inria.fr
File Name: i3nception_tf.py
Class Name:
Method Name:
Project Name: arraiy/torchgeometry
Commit Name: 2b32895c3178a412a701aba09dbad821d8acbd1a
Time: 2019-11-19
Author: edgar.riba@gmail.com
File Name: test/color/test_hls.py
Class Name: TestHlsToRgb
Method Name: test_hls_to_rgb