classify_video.py学习记录

来源:互联网 发布:美图软件 编辑:程序博客网 时间:2024/06/11 13:32
channel_mean = np.zeros((3,227,227))

创建一个三维数组,相当于3个227*227的二维数组,值是0

channel_mean[channel_index, ...] = mean_val

channel_index个二维数组所有值为mean_val

RGB_frames = glob.glob('%s%s/*.jpg' %(RGB_video_path, video))

找到路径下的所有jpg文件,返回是数组

clip_clip_markers = np.ones((clip_input.shape[0],1,1,1))

np.zeros,只是值为1