Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.13 KB

FiT.md

File metadata and controls

38 lines (30 loc) · 1.13 KB

Running FiT

Paper Link: https://arxiv.org/abs/2104.00650

Environment Setup

The instructions as follows,

# clone the repository then change the directory/branch
git clone https://github.com/ilkerkesen/frozen-in-time.git
cd frozen-in-time
git checkout vl-bench origin/vl-bench

# setup the environment and directories
conda env create --file environment.yml
conda activate frozen  # I recommend micromamba
mkdir checkpoints
mkdir data
mkdir exps

# download checkpoint and create symlinks for the dataset
wget -c https://www.robots.ox.ac.uk/~maxbain/frozen-in-time/models/cc-webvid2m-4f_stformer_b_16_224.pth.tar -P ./checkpoints/
ln -s /path/to/vl-bench/annotations ./data/vl-bench

Running FiT on the data

Just run the following command,

python run_bench.py \
    --config configs/vlbench.json
    --metadata_filename json_filename.json \
    --quva_dir /path/to/quva \
    --something_something_dir /path/to/dataset-videos \
    --output_file /path/to/output.json

This command will produce a results annotation file /path/to/output.json. To generate scores for the proficiency task, pass the --proficiency flag.