def train_net(solver_prototxt, roidb, output_dir, pretrained_model=None, max_iters=40000):
 sw = SolverWrapper(solver_prototxt, roidb, output_dir, pretrained_model=pretrained_model)
 print 'Solving...'
 sw.train_model(max_iters)
 print 'done solving'

def train_net ( solver_prototxt , roidb , output_dir , pretrained_model = None , max_iters = 40000 ) : sw = SolverWrapper ( solver_prototxt , roidb , output_dir , pretrained_model = pretrained_model ) print 'Solving...' sw . train_model ( max_iters ) print 'done solving'
train a fast r-cnn network .