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

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.

版权声明


相关文章:

  • 开窗函数和窗口函数区别2024-10-28 20:30:13
  • pycharm中出现no module named2024-10-28 20:30:13
  • redisson集群模式2024-10-28 20:30:13
  • oauth2.0+jwt2024-10-28 20:30:13
  • geo redis2024-10-28 20:30:13
  • ip a命令详解2024-10-28 20:30:13
  • 位图索引是什么2024-10-28 20:30:13
  • java bitset用法2024-10-28 20:30:13
  • 前端实现权限管理2024-10-28 20:30:13
  • 数据库有哪些?2024-10-28 20:30:13