Module Expr Str Import alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Import alias Import alias Import alias Import alias identifier Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Print Str Print NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr
N/A N/A Train a Fast R-CNN network on a region of interest database. N/A _init_paths fast_rcnn.train get_training_roidb train_net fast_rcnn.config cfg cfg_from_file cfg_from_list get_output_dir datasets.factory get_imdb N/A caffe N/A argparse N/A pprint N/A numpy np N/A sys parse_args N/A N/A N/A N/A N/A 
    Parse input arguments
     N/A parser N/A N/A argparse ArgumentParser description Train a Fast R-CNN network N/A N/A N/A parser add_argument --gpu dest gpu_id help GPU device id to use [0] default 0 type int N/A N/A N/A parser add_argument --solver dest solver help solver prototxt default None type str N/A N/A N/A parser add_argument --iters dest max_iters help number of iterations to train default 40000 type int N/A N/A N/A parser add_argument --weights dest pretrained_model help initialize with pretrained model weights default None type str N/A N/A N/A parser add_argument --cfg dest cfg_file help optional config file default None type str N/A N/A N/A parser add_argument --imdb dest imdb_name help dataset to train on default voc_2007_trainval type str N/A N/A N/A parser add_argument --rand dest randomize help randomize (do not use a fixed seed) action store_true N/A N/A N/A parser add_argument --set dest set_cfgs help set config keys default None nargs N/A argparse REMAINDER N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A parser print_help N/A N/A N/A sys exit 1 N/A args N/A N/A parser parse_args N/A args N/A N/A N/A __name__ __main__ N/A N/A args N/A parse_args N/A Called with args: N/A args N/A N/A N/A args cfg_file None N/A N/A N/A cfg_from_file N/A args cfg_file N/A N/A N/A args set_cfgs None N/A N/A N/A cfg_from_list N/A args set_cfgs N/A Using config: N/A N/A N/A pprint pprint cfg N/A N/A N/A args randomize N/A N/A N/A N/A N/A np random seed N/A cfg RNG_SEED N/A N/A N/A caffe set_random_seed N/A cfg RNG_SEED N/A N/A N/A caffe set_mode_gpu N/A N/A N/A args gpu_id None N/A N/A N/A N/A caffe set_device N/A args gpu_id N/A imdb N/A get_imdb N/A args imdb_name N/A N/A N/A Loaded dataset `{:s}` for training format N/A imdb name N/A roidb N/A get_training_roidb imdb N/A output_dir N/A get_output_dir imdb None N/A N/A N/A Output will be saved to `{:s}` format output_dir N/A N/A train_net N/A args solver roidb output_dir pretrained_model N/A args pretrained_model max_iters N/A args max_iters