Giter Site home page Giter Site logo

Support for online tracking tasks about dot HOT 5 OPEN

Soooooda69 avatar Soooooda69 commented on September 15, 2024
Support for online tracking tasks

from dot.

Comments (5)

16lemoing avatar 16lemoing commented on September 15, 2024 1

Hi @luminousking, this is not supported at the moment. In the current implementation we suppose that we have access to the full video.

from dot.

16lemoing avatar 16lemoing commented on September 15, 2024

Hi @Soooooda69, you can get considerable speed-ups by playing with the number of initial tracks extracted with CoTracker (this is the time bottleneck in most applications). The flag --num_tracks sets the total number of initial tracks and --sim_tracks sets the number of simultaneous tracks. Here are a few examples of the time you can get on the varanus data:

method num_tracks sim_tracks time for initial tracks time for refinement total time
default 8192 2048 1'30 0'13 1'43
parallelize 8192 8192 1'13 0'13 1'26
fewer tracks 2048 2048 0'25 0'13 0'38
" 1024 1024 0'18 0'13 0'31
" 512 512 0'13 0'13 0'26

Reducing the number of tracks may affect performance, but it does not seem to be the case for this video:

varanus_512_tracks.mp4

Further speed-ups may be obtained by parallelizing the refinement steps, but it has not been implemented yet.

Online tracking is an interesting feature. I have not implemented it yet either. I don't think it would help with speed much though, but it would allow to do inference on long videos.

from dot.

Soooooda69 avatar Soooooda69 commented on September 15, 2024

Thanks for the reply! So, based on the examples, I wonder if it is the case that with even fewer num of tracks, e.g. 200, the bottle neck for total running time would lies in 'time for refinement'. Seems like it takes 13 seconds no matter the time for initial tracks. Then Cotracker might be faster than Dot for smaller tracks case, or do I understand this correct?

from dot.

16lemoing avatar 16lemoing commented on September 15, 2024

The goal is to predict a dense field of N tracks from a sparse set of K tracks (extracted with CoTracker). In the example above, N is fixed (N=480*856) which is why the refinement stage always takes the same time (no matter K). Reducing K allows to speed up the first step. However, it should be noted that directly producing the N tracks with CoTracker would take much longer (see paper for details).

As mentioned in my response above, the 'time for refinement' could be reduced by parallelizing this loop:

for tgt_step in tqdm(range(T), desc="Refine target step", leave=False):

from dot.

luminousking avatar luminousking commented on September 15, 2024

Nice work! I was wondering if Dot supports point tracking for streaming unknown length video?

from dot.

Related Issues (17)

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.