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

CoTracker application on live videos #37

Open
ecatanzani opened this issue Sep 28, 2023 · 19 comments
Open

CoTracker application on live videos #37

ecatanzani opened this issue Sep 28, 2023 · 19 comments

Comments

@ecatanzani
Copy link

Hi, is there any possibility to port the actual cotracker capabilities to live videos (camera stream for example)? Accordingly to the paper the tracking is computed in an iterative way splitting the input video in sub-windows; I'm wondering if an application to live videos has been considered in this scheme.

Thanks for your work

@nikitakaraevv
Copy link
Contributor

Hi @ecatanzani, yes, in order for it to work, this while loop needs to be moved out of the forward function:

while ind < T - self.S // 2:

We will try to add this feature soon

@ecatanzani
Copy link
Author

Hi, thanks for your fast reply. I'm hardly trying to implement the modifications. If you manage, can you please share with me an example code feeding to the tracker the frames from an input stream (for example from cv2.VideoCapture(0))? Thanks again four your great work

@whymatter
Copy link

@ecatanzani I tried the suggested solution here: main...whymatter:co-tracker:streaming. See the limitations in the Readme.

@Danie1Nash
Copy link

Hi @nikitakaraevv, I'm curious about the progress of adding these features as mentioned in the reply. Could you possibly provide an estimated timeline for implementation? Thanks for your work!

@nikitakaraevv
Copy link
Contributor

Hi @Danie1Nash, we are planning to release an updated version of CoTracker in late November. It will also support loading chunks of videos.

@bhack
Copy link

bhack commented Oct 22, 2023

@nikitakaraevv It would be nice if with the new version we could enable/control a strategy to automatically allocate new points/grids on new incoming contents on the fly.
As new incoming and disappearing old content is going to decimate points over time so it could be nice to have a strategy to automatically allocate new points for new uncovered areas (eventually with an additional mask).

@supengufo
Copy link

Hello, it is now the end of November. May I know when the version supporting live video will be released?

@nikitakaraevv
Copy link
Contributor

Hi @supengufo, I'm working to release it as soon as possible :) I need a few more days to get everything ready.

@bhack
Copy link

bhack commented Dec 18, 2023

Any news on this?

@alejandroarmas
Copy link

Would love an update! I'm planning on incorporating this into a project and am considering how I would cut up live video to have object tracking throughout several contiguous clips.

@nikitakaraevv
Copy link
Contributor

Hi @bhack, @alejandroarmas, @supengufo, we found some bugs along the way and had to retrain the model several times before the release. The new model is finally available and it supports live video in online mode, please see https://github.com/facebookresearch/co-tracker?tab=readme-ov-file#online-mode and the online demo.
Let me know if this helps or if you have any other questions!

@bhack
Copy link

bhack commented Dec 28, 2023

Thanks, was the bug also in the original version?

@nikitakaraevv
Copy link
Contributor

Thanks, was the bug also in the original version?

No, it was related to Virtual Tracks introduced in the new version. We also fixed a lot of small things, such as coordinate mappings when the image or feature resolution changes. This did not really affect the performance of the model.

@bhack
Copy link

bhack commented Dec 28, 2023

Do you think that it has also an impact for #15 ?

@nikitakaraevv
Copy link
Contributor

Hi @bhack, I think the model still works well only with the training resolution unfortunately.

@nnop
Copy link

nnop commented Feb 7, 2024

@bhack proposed a great suggestion to dynamically allocate new points on the fly. That's very important for practical applications.
Have you considered supporting that?
@nikitakaraevv

@nikitakaraevv
Copy link
Contributor

Hi @nnop, yes! We're currently working on multiple ideas at the same time, including this one.

@nnop
Copy link

nnop commented Feb 7, 2024

That's great!
Is there any rough time we could expect?

@nikitakaraevv
Copy link
Contributor

We are still researching it, so we can't really promise anything yet.

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

8 participants