e686762e970ee4c0748242e735c2b068b9af89cf,chainercv/transforms/image/resize_transform.py,,resize,#Any#Any#,11

Before Change


        raise ValueError("length of the output_shape needs to be 2")
    x = x.transpose(1, 2, 0)
    scale = np.max(np.abs(x))
    x = skimage.transform.resize(
        x / scale, output_shape).astype(x.dtype)
    x = x.transpose(2, 0, 1) * scale
    return x

After Change



    H, W = output_shape
    x = x.transpose(1, 2, 0)
    x = cv2.resize(x, dsize=(W, H))
    x = x.transpose(2, 0, 1)
    return x
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainercv
Commit Name: e686762e970ee4c0748242e735c2b068b9af89cf
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/resize_transform.py
Class Name:
Method Name: resize


Project Name: streamlit/streamlit
Commit Name: dfe171249a251094498f4f17902f2486eb2fa941
Time: 2019-08-28
Author: arraydude@gmail.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: _bytes_to_b64


Project Name: keras-team/keras
Commit Name: 3cde2c1f8af4dc10d3ba2fd2663e1335d8f8714c
Time: 2017-02-21
Author: datumbox@users.noreply.github.com
File Name: keras/preprocessing/image.py
Class Name:
Method Name: load_img