当前位置:网站首页 > 技术博客 > 正文

i3d(3. Getting Started with Pre-trained I3D Models on Kinetcis400¶)



We will try out a pre-trained I3D model on a single video clip.

First, please follow the to install and if you haven’t done so yet.

Then, we download the video and extract a 32-frame clip from it.

Now we define transformations for the video clip. This transformation function does three things: center crop the image to 224x224 in size, transpose it to , and normalize with mean and standard deviation calculated across all ImageNet images.

Next, we load a pre-trained I3D model.

Note that if you want to use InceptionV3 series model (i.e., i3d_inceptionv3_kinetics400), please resize the image to have both dimensions larger than 299 (e.g., 340x450) and change input size from 224 to 299 in the transform function. Finally, we prepare the video clip and feed it to the model.

We can see that our pre-trained model predicts this video clip to be action with high confidence.

版权声明


相关文章:

  • seo图片素材2024-10-28 20:30:13
  • htm和html一样吗2024-10-28 20:30:13
  • 汇编语言标志位有什么作用2024-10-28 20:30:13
  • l298n引脚功能表2024-10-28 20:30:13
  • 86版王码五笔输入法字根表2024-10-28 20:30:13
  • 积分运算电路计算公式2024-10-28 20:30:13
  • 栅格布局是什么意思2024-10-28 20:30:13
  • 查找在文件testfile2024-10-28 20:30:13
  • 二叉树遍历解题技巧2024-10-28 20:30:13
  • 备忘录设计图2024-10-28 20:30:13