GithubHelp home page GithubHelp logo

data preparation step about coclr HOT 5 CLOSED

justlovebarbecue avatar justlovebarbecue commented on August 20, 2024
data preparation step

from coclr.

Comments (5)

TengdaHan avatar TengdaHan commented on August 20, 2024

The instructions in DPC and MemDPC are still feasible. Basically what you need to do is just extract video frames and optical flow (code) and prepare a dataloader.
In this repo, there is one difference that I pack the entire frame dataset into lmdb (code). But this step is not essential, as long as the dataloader returns video tensors in the correct format.

from coclr.

justlovebarbecue avatar justlovebarbecue commented on August 20, 2024

Hi Tengda, thanks for your reply. I found that there is a dataloader in your code, which is for the LMDB format. Hence, if I choose the LMDB format, I can directly use your code, while if I choose my own data format, I need to write corresponding dataloader. Am I right? Thanks!

from coclr.

TengdaHan avatar TengdaHan commented on August 20, 2024

Yes, that's right.
If you choose to read from video frames, you can still refer to https://github.com/TengdaHan/MemDPC/blob/master/memdpc/dataset.py, with some modifications in the sampling method (i.e. sampling twice for two random augmentations etc.)
If you choose other ways to load data, you have to ensure your dataloader supports data augmentations & returns tensors with the same shape.

from coclr.

justlovebarbecue avatar justlovebarbecue commented on August 20, 2024

Hi Tengda, thanks for your detailed reply. I will try it based on your code.
Thanks!

from coclr.

farleylai avatar farleylai commented on August 20, 2024

While several related works simply download saved jpeg frames from the two-stream repo, CoCLR seems to have different frame saving parameters (resolution and quality) which retains the original video format better.
Does CoCLR extract the frames following the procedure in the DPC repo as follows? That is resize to 240 with the aspect ratio preserved and jpeg quality set to 80 using OpenCV?

https://github.com/TengdaHan/DPC/blob/master/process_data/src/extract_frame.py

from coclr.

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.