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

Running feature extraction on own videos. #25

Open
Andrew-Zhang opened this issue Jul 3, 2023 · 3 comments
Open

Running feature extraction on own videos. #25

Andrew-Zhang opened this issue Jul 3, 2023 · 3 comments

Comments

@Andrew-Zhang
Copy link

Hello!

I am trying to extract the features of my own videos using Slowfast. Do you recommend using feature_extractor.py, or is there a better way of extracting these features from new videos? Thanks!

@Andrew-Zhang Andrew-Zhang changed the title Running on own videos. Running feature extraction on own videos. Jul 3, 2023
@TheShadow29
Copy link
Owner

Hi @Andrew-Zhang

Sorry for the delayed reply. Yes, you can use feature_extractor.py for any videos. But it needs the videos to be extracted into image frames. Alternatively, you can just decode them during the feature extraction process using something like ffmpeg or decord.

You can also check out pytorchvideo if you want to use more recent backbones.

Let me know if that answers your questions.

@minuenergy
Copy link

Hi @Andrew-Zhang

Sorry for the delayed reply. Yes, you can use feature_extractor.py for any videos. But it needs the videos to be extracted into image frames. Alternatively, you can just decode them during the feature extraction process using something like ffmpeg or decord.

You can also check out pytorchvideo if you want to use more recent backbones.

Let me know if that answers your questions.

I want to reproduce your jobs

And I wonder what model's feature can get (15, 2048) shape features?
and also ( 15, 4 ) features either !

I try i3d which comes (5, 2048),,
please tell me which feature extractor models should i use
Thank you !!

@TheShadow29
Copy link
Owner

TheShadow29 commented Jan 6, 2024

@minuenergy Sorry for the delayed reply.

You can find the feature extraction code here: https://github.com/TheShadow29/VidSitu/blob/main/vidsitu_code/feat_extractor.py

See the instructions here: https://github.com/TheShadow29/VidSitu/blob/main/data/DATA_PREP.md

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

3 participants