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
if not isinstance(img, tuple):
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: pandas-dev/pandas
Commit Name: 8051248bedd7387babba24c5756c286987c42eb1
Time: 2021-02-21
Author: jbrockmendel@gmail.com
File Name: asv_bench/benchmarks/hash_functions.py
Class Name: IsinAlmostFullWithRandomInt
Method Name: setup
Project Name: pandas-dev/pandas
Commit Name: 8051248bedd7387babba24c5756c286987c42eb1
Time: 2021-02-21
Author: jbrockmendel@gmail.com
File Name: asv_bench/benchmarks/hash_functions.py
Class Name:
Method Name: setup