GithubHelp home page GithubHelp logo

frame extraction about two-stream-pytorch HOT 4 CLOSED

bryanyzhu avatar bryanyzhu commented on July 22, 2024
frame extraction

from two-stream-pytorch.

Comments (4)

bryanyzhu avatar bryanyzhu commented on July 22, 2024

Hi you can either use opencv or ffmpeg to extract the frames. I suggest using opencv.

The detailed instructions are here. You can follow the sample in "saving a video" section. Hope this helps.

from two-stream-pytorch.

chandnikathuria1992 avatar chandnikathuria1992 commented on July 22, 2024

actually i already have extracted frames using FFmpeg
with folder structure as UCF101\jpg\classname\videoname\image_0001.jpg
now i want to test ur spatial stream.So first i need to run build_file_list.py. For this what should be folder structure for video frames?

from two-stream-pytorch.

bryanyzhu avatar bryanyzhu commented on July 22, 2024

Hi, if you already extract your frames, then maybe you can manually write your own script to generate the train/test file list.

The train file list should look like this. And when your train your model, you use "UCF101\jpg\classname" as DATA_PATH (as you said, this is your folder structure).

Note that, our image name pattern is default to be img_00001.jpg as written here. You can pass your own pattern to the data loading function, or simply change line 133 to image_%04d.jpg to fit your case.

If you want to do test, then the test file list should look like this.

I am sorry the code is not well organized, don't have time to unify it recently.

from two-stream-pytorch.

chandnikathuria1992 avatar chandnikathuria1992 commented on July 22, 2024

from two-stream-pytorch.

Related Issues (20)

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.