4a4e470321085513f38283c5aa2fd4460b80f58d,chainercv/datasets/pascal_voc/voc_detection_dataset.py,VOCDetectionDataset,get_example,#VOCDetectionDataset#Any#,80

Before Change


            bndbox_anno = obj.find("bndbox")
            bbox_elem = [int(bndbox_anno.find("xmin").text),
                         int(bndbox_anno.find("ymin").text),
                         int(bndbox_anno.find("xmax").text),
                         int(bndbox_anno.find("ymax").text)]
            // make pixel indexes 0-based
            bbox_elem = [float(b - 1) for b in bbox_elem]
            name = obj.find("name").text.lower().strip()
            label.append(self.labels.index(name))
            bbox.append(bbox_elem)

After Change



            bndbox_anno = obj.find("bndbox")
            // substract 1 to make pixel indexes 0-based
            bbox.append([
                int(bndbox_anno.find(tag).text) - 1
                for tag in ("xmin", "ymin", "xmax", "ymax")])
            name = obj.find("name").text.lower().strip()
            label.append(self.labels.index(name))
        bbox = np.stack(bbox).astype(np.float32)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainercv
Commit Name: 4a4e470321085513f38283c5aa2fd4460b80f58d
Time: 2017-03-15
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/pascal_voc/voc_detection_dataset.py
Class Name: VOCDetectionDataset
Method Name: get_example


Project Name: hanxiao/bert-as-service
Commit Name: dbc41cb728a33cebdaeafff5d494fa7bb4ebc382
Time: 2018-11-11
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:


Project Name: GPflow/GPflow
Commit Name: 5809cb0b339612434f4f332a91a2cd3e4570c34d
Time: 2018-02-26
Author: james@prowler.io
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward