Coder Social home page Coder Social logo

Highres perf about co-tracker HOT 8 CLOSED

facebookresearch avatar facebookresearch commented on May 23, 2024
Highres perf

from co-tracker.

Comments (8)

bhack avatar bhack commented on May 23, 2024 1

This is an example with your source video where I've slightly "increased the resolution" with a crop so we are not going to have side effects with the positional embedding.

video_pred_track.mp4

from co-tracker.

nikitakaraevv avatar nikitakaraevv commented on May 23, 2024

Hi @bhack, we didn't try to increase the model resolution. Since the model itself is a transformer, you would also need to resize positional embeddings if you want to change the model resolution.

from co-tracker.

bhack avatar bhack commented on May 23, 2024

I've tried to increase the inference resize a bit (2x) and It seems quite stable. What do you think about increasing it at inference time?
The main memory issue is that it load the full video in memory so It is not so resolution friendly.

from co-tracker.

nikitakaraevv avatar nikitakaraevv commented on May 23, 2024

I've just tried to run

python demo.py --grid-size 10

with CoTrackerPredictor.interp_shape of 384x512 and 768x1024. As you can see below, 768x1024 doesn't work that well:

video_768_1024.mp4
video_384_512.mp4

What's your use-case? Why do you need a higher resolution?

from co-tracker.

bhack avatar bhack commented on May 23, 2024

I am guessing how the tracks coordinates could be good enough at your paper original training resolution (and so for high res interpolated) vs higher res to then be digest by a solver on frame sequence (e.g. Ceres/libmv etc..)

from co-tracker.

bhack avatar bhack commented on May 23, 2024

More in general I am interested in any graph that analyze the points precision metric related to the input resolution as currently I don't find any section in the Co-tracker paper.
Is the resolution of 384x512 quite arbitrary or not? Is it just derived in the nearby of existing datasets right (e.g. TAP-VID 256x256)?
If I remember correctly also DINO v2 had a short final training phase at slightly higher resolution 518 × 518.
How much you think that the performance are capped by the selected resolution?
I know the memory constrain but at least it could be interesting to explore the correlation of perf with the input size use other attention "workaround" for the growing memory.

from co-tracker.

nikitakaraevv avatar nikitakaraevv commented on May 23, 2024

We use the resolution 384x512 for multiple reasons, mainly being that 512x512 is the upper limit for Kubric, our training dataset. Another reason is that we wanted to have the same resolution as PIPs, our main baseline, for a fair comparison.

The model should perform better with a higher resolution, and fine-tuning can also be helpful. Unfortunately, we haven't explored this yet.

from co-tracker.

bhack avatar bhack commented on May 23, 2024

Yes I understamd that sometime the "standard" Is defined but previous work/datasets.

But It could be interesting to verify how much the resolution is going to impact the precision. Specially when have pixel perfect synth dataset where this doesn't sum up to the annotators errors.

from co-tracker.

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.