Git Product home page Git Product logo

Comments (5)

iejMac avatar iejMac commented on July 20, 2024

is this for allowing lower resolution and sizing up?

from video2dataset.

rom1504 avatar rom1504 commented on July 20, 2024

from video2dataset.

iejMac avatar iejMac commented on July 20, 2024

@rom1504 couldn't find any way of specifying "closest format according to resolution" but we could manually do it in python by finding:

  • worst format >= target_resolution
  • best format <= target_resolution
    and comparing which is closer using metadata in the return formats

problem with this is not sure if we want to take on the extra overhead of playing with formats again. The speedup we recently got was from not playing with formats and just trusting yt-dlp to give us the best format. To that end I suggest 2 options, would like to hear some thoughts:

  1. we try the thing I suggested earlier, test it, etc.
  2. we implement resolution subsampler and use that on the output of data reader to get exact resolution we want and move this to v1

from video2dataset.

iejMac avatar iejMac commented on July 20, 2024

ChatGPT suggests using max_resolution with height and width and then combine with | best

from video2dataset.

iejMac avatar iejMac commented on July 20, 2024

summarizing my thoughts on this again:

we need to make it so that users have more choices about the output dimensionality than just - what YT has or EXACT video_size x video_size. To do this we need to implement the following functionality:

  • try to pick the smallest video larger than the video_size
  • if that's not available and all videos are smaller than take the largest video, smaller than video_size
  • if some resize mode is "pad", pad the video to video_size x video_size
  • otherwise just save the smaller version

from video2dataset.

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.