Module Expr Str Import alias Import alias Import alias Import alias identifier Import alias identifier Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Index NameLoad Num orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Slice Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad orelse If CompareLt NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Call NameLoad BinOpDiv BinOpMult NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Call NameLoad BinOpDiv BinOpMult NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Slice Return Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num For NameStore NameLoad body Print NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Print Str Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Assign NameStore Num Assign NameStore ListLoad While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad keyword NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
According to the paper, the authors extracted upto 80 frames from each video,
they did not mention if they grabbed first 80 frames, or sampled 80 frames with same intervals,
but anyway I did the latter.
 N/A cv2 N/A os N/A ipdb N/A numpy np N/A pandas pd N/A skimage cnn_util * preprocess_frame N/A N/A image target_height target_width N/A 224 224 N/A N/A N/A N/A len N/A image shape 2 N/A N/A image N/A N/A np tile N/A image N/A N/A N/A N/A None 3 N/A N/A N/A N/A len N/A image shape 4 N/A N/A image N/A image N/A N/A N/A N/A N/A 0 N/A image N/A N/A N/A N/A skimage img_as_float image astype N/A np float32 N/A N/A height width rgb N/A image shape N/A N/A width height N/A N/A resized_image N/A N/A cv2 resize image N/A target_height target_width N/A N/A N/A height width N/A N/A resized_image N/A N/A cv2 resize image N/A N/A int N/A N/A width N/A float target_height height target_width N/A cropping_length N/A int N/A N/A N/A N/A resized_image shape N/A 1 target_height 2 N/A resized_image N/A resized_image N/A N/A N/A cropping_length N/A N/A N/A resized_image shape N/A 1 cropping_length N/A N/A resized_image N/A N/A cv2 resize image N/A target_height N/A int N/A N/A height N/A float target_width width N/A cropping_length N/A int N/A N/A N/A N/A resized_image shape N/A 0 target_width 2 N/A resized_image N/A resized_image N/A N/A cropping_length N/A N/A N/A resized_image shape N/A 0 cropping_length N/A N/A N/A N/A cv2 resize resized_image N/A target_height target_width N/A main N/A N/A N/A N/A N/A num_frames 80 N/A vgg_model /home/taeksoo/Package/caffe/models/vgg/VGG_ILSVRC_19_layers.caffemodel N/A vgg_deploy /home/taeksoo/Package/caffe/models/vgg/VGG_ILSVRC_19_layers_deploy.prototxt N/A video_path /media/storage3/Study/data/youtube_videos N/A video_save_path /media/storage3/Study/data/youtube_feats N/A videos N/A N/A os listdir video_path N/A videos N/A filter N/A N/A N/A x N/A N/A N/A x endswith avi videos N/A cnn N/A CNN model vgg_model deploy vgg_deploy width 224 height 224 N/A video videos N/A N/A video N/A N/A N/A N/A os path exists N/A N/A N/A os path join video_save_path video N/A N/A Already processed ...  N/A N/A video_fullpath N/A N/A N/A os path join video_path video N/A N/A N/A cap N/A N/A cv2 VideoCapture video_fullpath N/A N/A N/A N/A N/A frame_count 0 N/A frame_list N/A N/A True N/A N/A N/A ret frame N/A N/A cap read N/A N/A ret False N/A N/A N/A N/A N/A frame_list append frame N/A frame_count 1 N/A frame_list N/A N/A np array frame_list N/A N/A frame_count 80 N/A N/A frame_indices N/A N/A N/A N/A np linspace 0 frame_count num num_frames endpoint False astype int N/A frame_list N/A frame_list N/A frame_indices N/A cropped_frame_list N/A N/A np array N/A map N/A N/A N/A x N/A N/A preprocess_frame x frame_list N/A feats N/A N/A cnn get_features cropped_frame_list N/A save_full_path N/A N/A N/A os path join video_save_path N/A video .npy N/A N/A N/A np save save_full_path feats N/A N/A N/A __name__ __main__ N/A N/A N/A main