2d065c2bb610aeff08ed117ec238546916d09633,keras_retinanet/preprocessing/pascal_voc.py,PascalVocGenerator,__parse_annotations,#PascalVocGenerator#Any#,159

Before Change


    def __parse_annotations(self, xml_root):
         Parse all annotations under the xml_root.
        
        boxes = np.zeros((0, 5))
        for i, element in enumerate(xml_root.iter("object")):
            try:
                truncated, difficult, box = self.__parse_annotation(element)

After Change


    def __parse_annotations(self, xml_root):
         Parse all annotations under the xml_root.
        
        annotations = {"labels": np.empty((len(xml_root.findall("object")),)), "bboxes": np.empty((len(xml_root.findall("object")), 4))}
        for i, element in enumerate(xml_root.iter("object")):
            try:
                truncated, difficult, box, label = self.__parse_annotation(element)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: fizyr/keras-retinanet
Commit Name: 2d065c2bb610aeff08ed117ec238546916d09633
Time: 2018-10-09
Author: h.gaiser@fizyr.com
File Name: keras_retinanet/preprocessing/pascal_voc.py
Class Name: PascalVocGenerator
Method Name: __parse_annotations


Project Name: mynlp/ccg2lambda
Commit Name: 33db6196686e2966e2f74bcabc89800a6cb701b6
Time: 2017-05-31
Author: pascual@nii.ac.jp
File Name: scripts/prove.py
Class Name:
Method Name: main


Project Name: samuelclay/NewsBlur
Commit Name: bd334ef20fdccb74d310ca00b1134388645ba0a5
Time: 2014-07-21
Author: samuel@ofbrooklyn.com
File Name: vendor/readability/encoding.py
Class Name:
Method Name: get_encoding