65094fc108c9db13fde4cbd5ab99491413842007,keras_retinanet/preprocessing/csv_generator.py,CSVGenerator,load_annotations,#CSVGenerator#Any#,199

Before Change


        
        path   = self.image_names[image_index]
        annots = self.image_data[path]
        boxes  = np.zeros((len(annots), 5))

        for idx, annot in enumerate(annots):
            class_name = annot["class"]

After Change


         Load annotations for an image_index.
        
        path        = self.image_names[image_index]
        annotations = {"labels": np.empty((0,)), "bboxes": np.empty((0, 4))}

        for idx, annot in enumerate(self.image_data[path]):
            annotations["labels"] = np.concatenate((annotations["labels"], [self.name_to_label(annot["class"])]))
            annotations["bboxes"] = np.concatenate((annotations["bboxes"], [[
                float(annot["x1"]),
                float(annot["y1"]),
                float(annot["x2"]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: fizyr/keras-retinanet
Commit Name: 65094fc108c9db13fde4cbd5ab99491413842007
Time: 2018-10-08
Author: h.gaiser@fizyr.com
File Name: keras_retinanet/preprocessing/csv_generator.py
Class Name: CSVGenerator
Method Name: load_annotations


Project Name: daavoo/pyntcloud
Commit Name: 59ec6660464bd378b20d4ae200c7614133a9a38b
Time: 2019-08-26
Author: hc.wang96@gmail.com
File Name: pyntcloud/samplers/points.py
Class Name: FarthestPointsSampler
Method Name: compute


Project Name: IndicoDataSolutions/finetune
Commit Name: 04573605a3bef45d29d81302bce154f220bbd7f5
Time: 2019-01-15
Author: matthew.bayer@indico.io
File Name: finetune/target_encoders.py
Class Name: OrdinalRegressionEncoder
Method Name: rank_to_thresholds