def get_training_roidb(imdb):
 if cfg.TRAIN.USE_FLIPPED:
  print 'Appending horizontally-flipped training examples...'
  imdb.append_flipped_images()
  print 'done'
 print 'Preparing training data...'
 rdl_roidb.prepare_roidb(imdb)
 print 'done'
 return imdb.roidb

def get_training_roidb ( imdb ) : if cfg . TRAIN . USE_FLIPPED : print 'Appending horizontally-flipped training examples...' imdb . append_flipped_images ( ) print 'done' print 'Preparing training data...' rdl_roidb . prepare_roidb ( imdb ) print 'done' return imdb . roidb
returns a roidb for use in training .