060dfe2da846c7168f98dd9f46f47308e4317a9d,test/color/test_hls.py,TestHlsToRgb,test_batch_hls_to_rgb,#TestHlsToRgb#,122
Before Change
def test_batch_hls_to_rgb(self):
expected = torch.tensor([[[21., 22.],
[22., 22.]],
[[13., 14.],
[14., 14.]],
[[8., 8.],
[8., 8.]]]) // 3x2x2
data = torch.tensor([[[0.0641, 0.07138],
[0.07138, 0.07138]],
After Change
data = torch.rand(3,5,5)
// OpenCV
data_cv = data.numpy().transpose(1, 2, 0).copy()
data_cv[:,:,0] = 360*data_cv[:,:,0]
expected = cv2.cvtColor(data_cv, cv2.COLOR_HLS2RGB)
expected = expected.transpose(2,0,1)
// Kornia
f = kornia.color.HlsToRgb()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: arraiy/torchgeometry
Commit Name: 060dfe2da846c7168f98dd9f46f47308e4317a9d
Time: 2019-11-13
Author: priba@cvc.uab.cat
File Name: test/color/test_hls.py
Class Name: TestHlsToRgb
Method Name: test_batch_hls_to_rgb
Project Name: tensorly/tensorly
Commit Name: a5bd6a5eb3b78fe02c34de7db53efe253e85ecb9
Time: 2017-09-09
Author: jean.kossaifi@gmail.com
File Name: tensorly/decomposition/tests/test_robust_decomposition.py
Class Name:
Method Name: test_RPCA
Project Name: arraiy/torchgeometry
Commit Name: 6a85646b6d99b92ba436b227ee04c7344bb1f72a
Time: 2019-11-13
Author: priba@cvc.uab.cat
File Name: test/color/test_hsv.py
Class Name: TestHsvToRgb
Method Name: test_batch_hsv_to_rgb