7c57e6f2de0795edef5aed8cbcebb1243ba86191,lib/reconstruct.py,,image,#Any#Any#Any#Any#,126

Before Change


        dst = blockwise(src[:, :, 0], model, block_size, batch_size)
        dst = np.clip(dst, 0, 1) * 255
        src[:, :, 0] = dst[:, :, 0]
        dst = Image.fromarray(src, mode="YCbCr").convert("RGB")
    elif model.ch == 3:
        src = np.array(src.convert("RGB"), dtype=np.uint8)
        dst = blockwise(src, model, block_size, batch_size)

After Change


        dst = blockwise(src[:, :, 0], model, block_size, batch_size)
        dst = np.clip(dst, 0, 1) * 255
        src[:, :, 0] = dst[:, :, 0]
        dst = Image.fromarray(src, mode="YCbCr")
        if y2rgb:
            dst = dst.split()[0]
        else:
            dst = dst.convert("RGB")
    elif model.ch == 3:
        y2rgb = src.mode == "L"
        if y2rgb:
            src = iproc.y2rgb(src)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 7c57e6f2de0795edef5aed8cbcebb1243ba86191
Time: 2018-02-23
Author: nstm101339@gmail.com
File Name: lib/reconstruct.py
Class Name:
Method Name: image


Project Name: chainer/chainercv
Commit Name: fbbfa4a2123ce41969230d531000b5836f1ab399
Time: 2017-08-07
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/image.py
Class Name:
Method Name: write_image


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 7c57e6f2de0795edef5aed8cbcebb1243ba86191
Time: 2018-02-23
Author: nstm101339@gmail.com
File Name: lib/reconstruct.py
Class Name:
Method Name: image_tta


Project Name: NifTK/NiftyNet
Commit Name: 90a28005e448fa1240ca0c0c77c690e47fc1a5be
Time: 2017-07-06
Author: eli.gibson@gmail.com
File Name: engine/logging.py
Class Name:
Method Name: image3_animatedGIF