37e31ed5fc192983ac9023ebe19d0850ca0b2bbf,luminoth/tools/dataset/readers/object_detection/flat_reader.py,FlatReader,iterate,#FlatReader#,79

Before Change



            image_id = annotation["image_id"]

            if not self._is_valid(image_id):
                continue

            try:

After Change



            image_id = annotation["image_id"]

            if self._should_skip(image_id=image_id):
                continue

            try:
                image_path = self._get_image_path(image_id)
                image = read_image(image_path)
            except tf.errors.NotFoundError:
                tf.logging.debug(
                    "Error reading image or annotation for "{}".".format(
                        image_id))
                self.errors += 1
                continue

            image_pil = Image.open(six.BytesIO(image))
            width = image_pil.width
            height = image_pil.height

            gt_boxes = []
            for b in annotation[self._objects_key]:
                try:
                    label_id = self.classes.index(
                        b.get("label", self._default_class)
                    )
                except ValueError:
                    continue

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

                gt_boxes.append({
                    "label": label_id,
                    "xmin": b[self._x_min_key],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 11

Instances


Project Name: tryolabs/luminoth
Commit Name: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
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: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
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: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
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


Project Name: tryolabs/luminoth
Commit Name: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/openimages.py
Class Name: OpenImagesReader
Method Name: _queue_records


Project Name: tryolabs/luminoth
Commit Name: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
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: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
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: 37e31ed5fc192983ac9023ebe19d0850ca0b2bbf
Time: 2018-08-24
Author: dekked@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/taggerine.py
Class Name: TaggerineReader
Method Name: iterate