50839f8ed95147c71f9f045495ed45380a2ce513,test/color/test_hls.py,TestRgbToHls,test_nan_rgb_to_hls,#TestRgbToHls#,63
Before Change
data = data.repeat(3, 1, 1) // 2x3x5x5
// OpenCV
data_cv = data.numpy().transpose(1, 2, 0).copy()
expected = cv2.cvtColor(data_cv, cv2.COLOR_RGB2HLS)
expected[:, :, 0] = 2 * math.pi * expected[:, :, 0] / 360.
expected = expected.transpose(2, 0, 1)
After Change
data = data.repeat(3, 1, 1) // 2x3x5x5
// OpenCV
expected = torch.cat([torch.zeros(1, 5, 5), torch.ones(1, 5, 5), torch.zeros(1, 5, 5)], dim=0)
// Kornia
f = kornia.color.RgbToHls()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: arraiy/torchgeometry
Commit Name: 50839f8ed95147c71f9f045495ed45380a2ce513
Time: 2019-11-19
Author: priba@cvc.uab.cat
File Name: test/color/test_hls.py
Class Name: TestRgbToHls
Method Name: test_nan_rgb_to_hls
Project Name: arraiy/torchgeometry
Commit Name: 50839f8ed95147c71f9f045495ed45380a2ce513
Time: 2019-11-19
Author: priba@cvc.uab.cat
File Name: test/color/test_hls.py
Class Name: TestRgbToHls
Method Name: test_nan_rgb_to_hls
Project Name: arraiy/torchgeometry
Commit Name: 50839f8ed95147c71f9f045495ed45380a2ce513
Time: 2019-11-19
Author: priba@cvc.uab.cat
File Name: test/color/test_hsv.py
Class Name: TestRgbToHsv
Method Name: test_nan_rgb_to_hsv
Project Name: dmlc/gluon-cv
Commit Name: fdd55d36c05c747643fc98430a7f9b787b6cec16
Time: 2019-08-29
Author: yizhu59@gmail.com
File Name: gluoncv/data/kinetics400/classification.py
Class Name: Kinetics400
Method Name: _TSN_RGB