'Return the roidb indices for the next minibatch.'

def _get_next_minibatch_inds(self):

    if ((self._cur + cfg.TRAIN.IMS_PER_BATCH) >= len(self._roidb)):
        self._shuffle_roidb_inds()
    db_inds = self._perm[self._cur:(self._cur + cfg.TRAIN.IMS_PER_BATCH)]
    self._cur += cfg.TRAIN.IMS_PER_BATCH
    "\n                                #    sample    images    with    gt    objects\n                                db_inds    =    np.zeros((cfg.TRAIN.IMS_PER_BATCH),    dtype=np.int32)\n                                i    =    0\n                                while    (i    <    cfg.TRAIN.IMS_PER_BATCH):\n                                                ind    =    self._perm[self._cur]\n                                                num_objs    =    self._roidb[ind]['boxes'].shape[0]\n                                                if    num_objs    !=    0:\n                                                                db_inds[i]    =    ind\n                                                                i    +=    1\n\n                                                self._cur    +=    1\n                                                if    self._cur    >=    len(self._roidb):\n                                                                self._shuffle_roidb_inds()\n                                "
    return db_inds
