(self, min_size=32)
return valid_inds
Filter images too small.
Filter images too small.
Filter images too small .
def _filter_imgs(self, min_size=32):
        """Filter images too small."""
        valid_inds = []
        for i, img_info in enumerate(self.img_infos):
            if min(img_info['width'], img_info['height']) >= min_size:
                valid_inds.append(i)
        return valid_inds
def _filter_imgs ( self , min_size = 32 ) : valid_inds = [ ] for i , img_info in enumerate ( self . img_infos ) : if min ( img_info [ 'width' ] , img_info [ 'height' ] ) >= min_size : valid_inds . append ( i ) return valid_inds