f7a41e4ddaa12a5cb19d0458431e88a16edd10b6,chainercv/visualizations/vis_instance_segmentation.py,,vis_instance_segmentation,#Any#Any#Any#Any#Any#Any#Any#Any#,9

Before Change


    // Returns newly instantiated matplotlib.axes.Axes object if ax is None
    ax = vis_image(img, ax=ax)

    canvas_img = np.zeros((mask.shape[1], mask.shape[2], 4), dtype=np.uint8)
    for i, (color, bb, msk) in enumerate(zip(colors, bbox, mask)):
        rgba = np.append(color, alpha * 255)
        bb = np.round(bb).astype(np.int32)

After Change


    n_inst = len(bbox)
    colors = np.array([_default_cmap(l) for l in range(1, n_inst + 1)])

    canvas_img = img.transpose((1, 2, 0)).copy()
    for i, (color, bb, msk) in enumerate(zip(colors, bbox, mask)):
        bb = np.round(bb).astype(np.int32)
        y_min, x_min, y_max, x_max = bb
        if y_max > y_min and x_max > x_min:
            canvas_img[msk] = alpha * color + canvas_img[msk] * (1 - alpha)

        caption = []
        if label is not None and label_names is not None:
            lb = label[i]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: chainer/chainercv
Commit Name: f7a41e4ddaa12a5cb19d0458431e88a16edd10b6
Time: 2018-03-26
Author: yuyuniitani@gmail.com
File Name: chainercv/visualizations/vis_instance_segmentation.py
Class Name:
Method Name: vis_instance_segmentation


Project Name: maciejkula/spotlight
Commit Name: 70e4d7fe60a9658bb27b9f5fb67592a1222b2ec3
Time: 2017-07-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: PoolNet
Method Name: user_representation


Project Name: keras-team/keras
Commit Name: 359e7627b46e850688c95cf6d1de48b77f9df901
Time: 2018-08-08
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: bias_add


Project Name: maciejkula/spotlight
Commit Name: 70e4d7fe60a9658bb27b9f5fb67592a1222b2ec3
Time: 2017-07-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: CNNNet
Method Name: user_representation


Project Name: streamlit/streamlit
Commit Name: a9ec1a8df7bbfd99d1e166fe5d72bafcc23c915b
Time: 2018-02-03
Author: adrien.g.treuille@gmail.com
File Name: periodic_table.py
Class Name:
Method Name: