Giter Site home page Giter Site logo

mxnet-videoio's Introduction

本工程封装MXNet Rec接口,实现视频I/O读取速度优化.

优化前后性能对比

mxnet: 1.0.1
network: BN-Inception
machine: GTX 1080ti
data classes: 101
number of frames: 3f/video
frame resolution: 256x320

读取方式                       单个gpu             4个gpu                                
cv2.imread,单线程 速度:23.44samples/sec 显存: 9491MB 速度: 26.81samples/sec 显存: 12274MB  
cv2.imread,多线程(10) 速度:23.44samples/sec 显存: 9481MB 速度: 26.81samples/sec 显存: 12274MB  
优化后   速度:120.50 samples/sec 显存: 9497MB 速度: 464.67 samples/sec 显存: 12298MB

接口使用姿势

1:本工程未提供截帧程序,视频需要提前截帧,每个视频对应的帧图像存放在同一个文件夹

2:遍历文件夹,生成训练列表文件,文件每行描述一个视频信息,格式为:‘文件夹绝对路径 ,截取的帧图像数,视频所属类别’

3:运行video2rec.py读取txt文件,将图像打包成rec文件

4:运行dataloader.py读取rec文件,并打包成 VideoDataIter

mxnet-videoio's People

Contributors

mtcloudvision avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.