37e31ed5fc192983ac9023ebe19d0850ca0b2bbf,luminoth/tools/dataset/readers/object_detection/openimages.py,OpenImagesReader,_queue_records,#OpenImagesReader#Any#,142

Before Change


                if self._stop_iteration():
                    break

                if not self._is_valid(line["ImageID"]):
                    continue

                // Filter group annotations (we only want single instances)

After Change


                if self._stop_iteration():
                    break

                if self._should_skip(image_id=line["ImageID"]):
                    continue

                // Filter group annotations (we only want single instances)
                if line["IsGroupOf"] == "1":
                    continue

                if line["ImageID"] != current_image_id:
                    // Yield if image changes and we have current image.
                    if current_image_id is not None:
                        if len(partial_record["gt_boxes"]) > 0:
                            records_queue.put(partial_record)
                        else:
                            tf.logging.debug(
                                "Dropping record {} without gt_boxes.".format(
                                    partial_record))

                    // Start new record.
                    current_image_id = line["ImageID"]

                    partial_record = {
                        "filename": current_image_id,
                        "gt_boxes": []
                    }

                // Append annotation to current record.
                try:
                    // LabelName may not exist because not all labels are
                    // trainable
                    label = self.trainable_labels.index(line["LabelName"])
                except ValueError:
                    continue

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

                partial_record["gt_boxes"].append({
                    "xmin": float(line["XMin"]),
                    "ymin": float(line["YMin"]),
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/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/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/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/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/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/taggerine.py
Class Name: TaggerineReader
Method Name: iterate