Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom 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 Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num keyword NameLoad 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 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 Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr
N/A N/A Test a Fast R-CNN network on an image database. N/A _init_paths fast_rcnn.test test_net fast_rcnn.config cfg cfg_from_file cfg_from_list datasets.factory get_imdb 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 --comp dest comp_mode help competition mode 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 parser add_argument --vis dest vis help visualize detections action store_true N/A N/A N/A parser add_argument --num_dets dest max_per_image help max number of detections per image default 100 type int 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 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 N/A N/A imdb competition_mode N/A args comp_mode N/A N/A N/A N/A cfg TEST HAS_RPN N/A N/A N/A N/A imdb set_proposal_method N/A N/A cfg TEST PROPOSAL_METHOD N/A N/A test_net net imdb max_per_image N/A args max_per_image vis N/A args vis