bfbd2223521126cefe0a25382f09a684c34e4a01,mmdet/datasets/coco.py,CocoDataset,_filter_imgs,#CocoDataset#Any#,94

Before Change


        Filter images too small or without ground truths.
        img_ids = list(set([_["image_id"] for _ in self.coco.anns.values()]))
        valid_ids = []
        img_infos = []
        for i in img_ids:
            info = self.coco.loadImgs(i)[0]
            if min(info["width"], info["height"]) >= min_size:
                valid_ids.append(i)
                img_infos.append(info)
        return valid_ids, img_infos

    def _load_ann_info(self, idx):
        img_id = self.img_ids[idx]

After Change


        Filter images too small or without ground truths.
        valid_inds = []
        ids_with_ann = set(_["image_id"] for _ in self.coco.anns.values())
        for i, img_info in enumerate(self.img_infos):
            if self.img_ids[i] not in ids_with_ann:
                continue
            if min(img_info["width"], img_info["height"]) >= min_size:
                valid_inds.append(i)
        return valid_inds

    def _parse_ann_info(self, ann_info, with_mask=True):
        Parse bbox and mask annotation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: open-mmlab/mmdetection
Commit Name: bfbd2223521126cefe0a25382f09a684c34e4a01
Time: 2018-10-20
Author: chenkaidev@gmail.com
File Name: mmdet/datasets/coco.py
Class Name: CocoDataset
Method Name: _filter_imgs


Project Name: deepchem/deepchem
Commit Name: 3b3a06ad8402079c2d18718349d5f0f212ac7b81
Time: 2020-12-11
Author: nfrey213@gmail.com
File Name: deepchem/feat/base_classes.py
Class Name: ComplexFeaturizer
Method Name: featurize


Project Name: matplotlib/matplotlib
Commit Name: 1cfdb741661c2c9083235f258512c39cecae0da0
Time: 2019-02-06
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5.py
Class Name: NavigationToolbar2QT
Method Name: edit_parameters


Project Name: deepmind/dm_control
Commit Name: d29c32aa292cf4cedb5477b69621f30a8b62bd9f
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/mujoco/engine.py
Class Name: Physics
Method Name: check_invalid_state


Project Name: mindsdb/mindsdb
Commit Name: bd5d7fcca55a596c8a75984eb6df720083cf796f
Time: 2019-03-01
Author: jorge.torres.maldonado@gmail.com
File Name: mindsdb/libs/ml_models/probabilistic_validator.py
Class Name: ProbabilisticValidator
Method Name: _closest