Module Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr Num Num Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Slice NameLoad orelse AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Str Num
N/A N/A argparse N/A os N/A sys N/A numpy PIL Image N/A six.moves.cPickle pickle N/A parser N/A N/A argparse ArgumentParser description Compute images mean array N/A N/A N/A parser add_argument dataset help Path to training image-label list file N/A N/A N/A parser add_argument --root -r default . help Root directory path of image files N/A N/A N/A parser add_argument --output -o default mean.npy help path to output mean array N/A args N/A N/A parser parse_args N/A sum_image None N/A count 0 N/A line N/A open N/A args dataset N/A N/A filepath N/A N/A N/A os path join N/A args root N/A N/A N/A N/A N/A line strip split N/A 0 N/A image N/A N/A N/A N/A numpy asarray N/A N/A Image open filepath transpose 2 0 1 N/A N/A sum_image None N/A N/A sum_image N/A N/A numpy ndarray N/A image shape dtype N/A numpy float32 N/A N/A sum_image N/A image N/A N/A sum_image image N/A count 1 N/A N/A N/A N/A sys stderr write N/A N/A 
{} format count N/A N/A N/A N/A sys stderr flush N/A N/A N/A N/A sys stderr write N/A mean N/A sum_image count N/A N/A N/A pickle dump mean N/A open N/A args output wb -1