Please follow the installation instructions in INSTALL.md. You may follow the instructions in DATASET.md to prepare the datasets.
-
Download the pretrained models into the pretrained folder.
-
Simply run the training code as followed:
python3 tools/run_net.py --cfg configs/SSV1/SSV1_MLP_S16.yaml DATA.PATH_PREFIX /data/zhouds/some_some_v1/img OUTPUT_DIR /data/zhouds/tiaoshi[Note]:
-
You can change the configs files to determine which type of the experiments.
-
For more config details, you can read the comments in
slowfast/config/defaults.py. -
To avoid out of memory, you can use
torch.utils.checkpoint(will be updated soon):
We provide testing example as followed:
### SomethingV1&V2
```shell
python3 tools/run_net.py --cfg configs/SSV1/SSV1_MLP_S16.yaml DATA.PATH_PREFIX your_data_path TEST.NUM_ENSEMBLE_VIEWS 1 TEST.NUM_SPATIAL_CROPS 3 TEST.CHECKPOINT_FILE_PATH your_model_path OUTPUT_DIR your_output_dir
Specifically, we need to set the number of crops&clips and your checkpoint path then run multi-crop/multi-clip test:
Set the number of crops and clips:
Multi-clip testing for Kinetics
TEST.NUM_ENSEMBLE_VIEWS 4
TEST.NUM_SPATIAL_CROPS 1Multi-crop testing for Something-Something
TEST.NUM_ENSEMBLE_VIEWS 1
TEST.NUM_SPATIAL_CROPS 3You can also set the checkpoint path via:
TEST.CHECKPOINT_FILE_PATH your_model_pathThis repository is built based on SlowFast and MorphMLP repository.