'Initialize the SolverWrapper.'

def __init__(self, sess, saver, network, imdb, roidb, output_dir, pretrained_model=None):

    self.net = network
    self.imdb = imdb
    self.roidb = roidb
    self.output_dir = output_dir
    self.pretrained_model = pretrained_model
    print 'Computing    bounding-box    regression    targets...'
    if cfg.TRAIN.BBOX_REG:
        (self.bbox_means, self.bbox_stds) = rdl_roidb.add_bbox_regression_targets(roidb)
    print 'done'
    self.saver = saver
