Module Expr Str Import alias Import alias identifier ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias alias 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 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 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 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 Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Print Str Expr Call AttributeLoad NameLoad attr NameLoad While BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Print Call AttributeLoad Str attr NameLoad
N/A N/A Generate RPN proposals. N/A _init_paths N/A numpy np fast_rcnn.config cfg cfg_from_file cfg_from_list get_output_dir datasets.factory get_imdb rpn.generate imdb_proposals N/A cPickle N/A caffe N/A argparse N/A pprint N/A time os 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 Test a Fast R-CNN network N/A N/A N/A parser add_argument --gpu dest gpu_id help GPU id to use default 0 type int N/A N/A N/A parser add_argument --def dest prototxt help prototxt file defining the network default None type str N/A N/A N/A parser add_argument --net dest caffemodel help model to test 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 --wait dest wait help wait until net file exists default True type bool N/A N/A N/A parser add_argument --imdb dest imdb_name help dataset to test default voc_2007_test type str 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 N/A cfg GPU_ID N/A args gpu_id N/A N/A N/A cfg TEST RPN_PRE_NMS_TOP_N -1 N/A N/A N/A cfg TEST RPN_POST_NMS_TOP_N 2000 N/A Using config: N/A N/A N/A pprint pprint cfg N/A N/A N/A N/A N/A N/A os path exists N/A args caffemodel N/A args wait N/A N/A N/A N/A Waiting for {} to exist... format N/A args caffemodel N/A N/A N/A time sleep 10 N/A N/A N/A caffe set_mode_gpu N/A N/A N/A caffe set_device N/A args gpu_id N/A net N/A N/A caffe Net N/A args prototxt N/A args caffemodel N/A caffe TEST N/A N/A net name N/A N/A N/A N/A os path splitext N/A N/A N/A os path basename N/A args caffemodel N/A 0 N/A imdb N/A get_imdb N/A args imdb_name N/A imdb_boxes N/A imdb_proposals net imdb N/A output_dir N/A get_output_dir imdb net N/A rpn_file N/A N/A N/A os path join output_dir N/A N/A net name _rpn_proposals.pkl N/A N/A open rpn_file wb f N/A N/A N/A N/A cPickle dump imdb_boxes f N/A cPickle HIGHEST_PROTOCOL N/A N/A N/A Wrote RPN proposals to {} format rpn_file