f8aeed8e2ba799fd4d964e46479acfd5c768716c,luminoth/tools/dataset/readers/object_detection/imagenet.py,ImageNetReader,iterate,#ImageNetReader#,48

Before Change


                    new_width=width, new_height=height
                )

                if self._should_skip(label=label_id):
                    continue
                self._per_class_counter[label_id] += 1

                gt_boxes.append({
                    "label": label_id,

After Change


            if len(gt_boxes) == 0:
                continue

            record = {
                "width": width,
                "height": height,
                "depth": 3,
                "filename": annotation["filename"],
                "image_raw": image,
                "gt_boxes": gt_boxes,
            }

            self._will_add_record(record)
            self.yielded_records += 1

            yield record

    def _validate_structure(self):
        if not tf.gfile.Exists(self._data_dir):
            raise InvalidDataDirectory(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: tryolabs/luminoth
Commit Name: f8aeed8e2ba799fd4d964e46479acfd5c768716c
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/imagenet.py
Class Name: ImageNetReader
Method Name: iterate


Project Name: tryolabs/luminoth
Commit Name: f8aeed8e2ba799fd4d964e46479acfd5c768716c
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/taggerine.py
Class Name: TaggerineReader
Method Name: iterate


Project Name: tryolabs/luminoth
Commit Name: f8aeed8e2ba799fd4d964e46479acfd5c768716c
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/pascalvoc.py
Class Name: PascalVOCReader
Method Name: iterate


Project Name: tryolabs/luminoth
Commit Name: f8aeed8e2ba799fd4d964e46479acfd5c768716c
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/flat_reader.py
Class Name: FlatReader
Method Name: iterate


Project Name: tryolabs/luminoth
Commit Name: f8aeed8e2ba799fd4d964e46479acfd5c768716c
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/csv_reader.py
Class Name: CSVReader
Method Name: iterate