Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about v2 #54

Open
XiaoyuShi97 opened this issue Dec 28, 2023 · 8 comments
Open

question about v2 #54

XiaoyuShi97 opened this issue Dec 28, 2023 · 8 comments

Comments

@XiaoyuShi97
Copy link

Hi, I find that you mention the model is re-trained. I wonder if the old checkpoint is still compatible with v2 implementation? thanks!

@nikitakaraevv
Copy link
Contributor

Hi @XiaoyuShi97! Theoretically, the old checkpoint can work with the new codebase, but it is probably going to be worse than the new checkpoint because some components are implemented slightly differently. However, you can still use the old version. Please see https://github.com/facebookresearch/co-tracker?tab=readme-ov-file#previous-version

@XiaoyuShi97
Copy link
Author

XiaoyuShi97 commented Dec 29, 2023

Thanks for your prompt reply. In my case, another project uses frozen cotracker v1 as a sub-module. But when I substitute it with v2, the performance drops a lot. Is there possible reason for this drop? Or can I re-write v1 following your v2 implementation so that I can continue to use v1 with batch size larger than 1? Thanks!

@nikitakaraevv
Copy link
Contributor

Hmm, could you tell me what exactly is happening? Maybe you can send a video with predicted tracks if possible?
Yes, it should be relatively easy to use the old checkpoint with the new codebase. You'd need to use the old UpdateFormer without the virtual tracks.

@HeadReaper-hc
Copy link

Hi, may I ask if v2 requires more GPU memory or less than v1? @XiaoyuShi97 @nikitakaraevv

@nikitakaraevv
Copy link
Contributor

Hi @HeadReaper-hc, when tracking more than ~100 points, v2 requires much less GPU memory for the same number of points

@HeadReaper-hc
Copy link

@nikitakaraevv get it. Thank you very much.

@1242433760
Copy link

@nikitakaraevv Hi, another question, does v1 support online mode ?

@nikitakaraevv
Copy link
Contributor

Hi @1242433760, only if you manage to load the v1 checkpoint in the new codebase.

Hi @XiaoyuShi97! Theoretically, the old checkpoint can work with the new codebase, but it is probably going to be worse than the new checkpoint because some components are implemented slightly differently. However, you can still use the old version. Please see https://github.com/facebookresearch/co-tracker?tab=readme-ov-file#previous-version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants