C3D网络 - 手写笔记

C3D  视频动作分类 

         “按照C3D Guide 的步骤让ucf101数据集上在已有的网络上进行微调,微调后的测试准确率达到了80.169%

clip = sorted(glob(join('data', clip_name, '*.png')))
clip = np.array([resize(io.imread(frame), output_shape=(112, 200), preserve_range=True) 
for frame in clip])
clip = clip[:, :, 44:44+112, :]  # crop centrally

if verbose:
    clip_img = np.reshape(clip.transpose(1, 0, 2, 3), (112, 16 * 112, 3))
    io.imshow(clip_img.astype(np.uint8))
    io.show()

clip = clip.transpose(3, 0, 1, 2)  # ch, fr, h, w
clip = np.expand_dims(clip, axis=0)  # batch axis
clip = np.float32(clip)

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/105416386