Please follow the installation instructions in INSTALL.md.
- We uniformly sample 4/8/16 frames for
DATA.NUM_FRAMES_L,DATA.NUM_FRAMES_MandDATA.NUM_FRAMES_Hduring training, and useDATA.NUM_FRAMESto specify the number of frames during inference. - We use 1-clip 3-crop evaluation for Transformer network with the resolution of 224x224 following the original implementation.
-
TRAIN.LAMBDAdenotes the coefficient$\lambda$ in the loss function and we set it as 1 without further fine-tuning the hyperparameter. - We train Transformer network Uniformer-S with 4 NVIDIA Tesla V100 (32GB) cards and the model is pretrained on Kinetics600 before training on Something-Something V1.
-
Specify the directory of datasets with
DATA.PATH_PREFIXinexp/uniformer_s16_sthv1_prek600_FFN/run.sh. -
Download the pretrained model on Kinetics600 from the original repo and specify the path with
PRETRAIN_NAMEinexp/uniformer_s16_sthv1_prek600_FFN/config.yaml. -
Simply run the training scripts in exp as followed:
bash exp/uniformer_s16_sthv1_prek600/run.sh ## baseline training bash exp/uniformer_s16_sthv1_prek600_FFN/run.sh ## FFN training
-
Specify the directory of datasets with
DATA.PATH_PREFIXinexp/uniformer_s16_sthv1_prek600_FFN/test.sh. -
Please download pretrained models from Google Drive.
-
Specify the directory of the pretrained model with
TEST.CHECKPOINT_FILE_PATHintest.sh. -
Run the inference scripts in exp as followed:
bash exp/uniformer_s16_sthv1_prek600/test.sh ## baseline inference bash exp/uniformer_s16_sthv1_prek600_FFN/test.sh ## FFN inference