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: 4
Non-data size: 4
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: IBM/adversarial-robustness-toolbox
Commit Name: a922855fe7aef360e4a360caa800388d9c843355
Time: 2019-07-23
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/tensorflow.py
Class Name: TensorflowV2Classifier
Method Name: predict
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: geomstats/geomstats
Commit Name: be291b6a6ab8a663beac72fefa213bc7216a1617
Time: 2020-04-07
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/frechet_mean.py
Class Name:
Method Name: _ball_gradient_descent