GitXplorerGitXplorer
z

Untrimmed-Video-Feature-Extractor

public
9 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
f677bd95c8ee19db06adcd74c7dc8fe51f109f76

Update README.md

tttengwang committed 2 years ago
Verified
e265e5fb87c1ee2955e4f8e7cc34640475fb7a89

Update README.md

tttengwang committed 2 years ago
Verified
878ebb8b480e4a98f0991db36dbf46c9dadc2345

Update README.md

tttengwang committed 2 years ago
Verified
81e4bae66d786defb189959148640a385191a661

Create base_environment.yaml

tttengwang committed 2 years ago
Verified
fe1fb0a730d78e3f586368c4a75b28ca21ed5575

Update eval_video_dataset.py

tttengwang committed 2 years ago
Unverified
72c94408aaeaed2d5d4c7e22505d9986b0a94ea2

Update README.md, Scripts and project structure

zzjr2000 committed 2 years ago

README

The README file for this repository.

Untrimmed Video Feature Extractor

Long and untrimmed video learning has recieved increasing attention in recent years. This repo aims to provide some simple and effective scripts for long and untrimmed video feature extraction. We adopt the video processing pipline from TSP and adapt it with several awesome vision pretraining backbones.

Environment

Run conda env create -f base_environment.yaml for base environment setup. For specific model setup, please check their project link:

Video Swin Transformer

Omnivore

CLIP

Usage

Run bash Scripts/generate_video_metada.sh to extract metadata from video, where VIDEO_FOLDER is the directory contains the raw videos, and OUTPUT_CSV_PATH is the output csv file contains the generated video metadata.

Then run the following script to extract features:

bash Scripts/extract_${MODEL_NAME}_feat.sh

Before running, rember to set the defined variable in the script.

Finally, run bash Scripts/merge_pkl_to_h5.sh to merge the video features to a single h5 file.

Acknowledgement

This repo is mainly based on pipeline provided by TSP.