'Set the roidb to be used by this layer during training.'

def set_roidb(self, roidb):

    self._roidb = roidb
    self._shuffle_roidb_inds()
    if cfg.TRAIN.USE_PREFETCH:
        self._blob_queue = Queue(10)
        self._prefetch_process = BlobFetcher(self._blob_queue, self._roidb, self._num_classes)
        self._prefetch_process.start()
        def cleanup():
            print 'Terminating    BlobFetcher'
            self._prefetch_process.terminate()
            self._prefetch_process.join()
        import atexit
        atexit.register(cleanup)
