19c8ee690ccf74947b379862a5290c9b53f96de7,chainercv/transforms/image/chw_to_pil_image.py,,chw_to_pil_image,#Any#Any#,4

Before Change


        ~numpy.ndarray: a uint8 image array

    
    img = img.transpose(1, 2, 0)
    if reverse_color_channel:
        img = img[:, :, ::-1]
    return img.astype(np.uint8)


def chw_to_pil_image_tuple(imgs, indices=[0], reverse_color_channel=True):
    Transforms CHW arrays into uint8 HWC arrays.

After Change


        return _chw_to_pil_image(img, reverse_color_channel)

    imgs = list(img)
    for i in six.moves.range(len(imgs)):
        imgs[i] = chw_to_pil_image(imgs[i], reverse_color_channel)
    return tuple(imgs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainercv
Commit Name: 19c8ee690ccf74947b379862a5290c9b53f96de7
Time: 2017-03-15
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/chw_to_pil_image.py
Class Name:
Method Name: chw_to_pil_image


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: rank_response


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: recall_at_k