-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CSN model to torch video model zoo (#1517)
* add ircsn * update model zoo * fix lint
- Loading branch information
Showing
8 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
from .r2plus1dv1 import * | ||
from .r2plus1dv2 import * | ||
from .tpn import * | ||
from .ircsnv2 import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
scripts/action-recognition/configuration/ircsn_v2_resnet152_f32s2_kinetics400.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# ircsn_v2_resnet152_f32s2_kinetics400 | ||
|
||
DDP_CONFIG: | ||
WORLD_SIZE: 1 | ||
WORLD_RANK: 0 | ||
GPU_WORLD_SIZE: 8 | ||
GPU_WORLD_RANK: 0 | ||
DIST_URL: 'tcp://172.31.72.252:23456' | ||
WOLRD_URLS: ['172.31.72.252'] | ||
AUTO_RANK_MATCH: True | ||
DIST_BACKEND: 'nccl' | ||
GPU: 0 | ||
DISTRIBUTED: True | ||
|
||
CONFIG: | ||
TRAIN: | ||
EPOCH_NUM: 58 # finetune from a pretrained model, hence small lr | ||
BATCH_SIZE: 8 | ||
LR: 0.000125 | ||
LR_POLICY: 'Step' | ||
MOMENTUM: 0.9 | ||
W_DECAY: 1e-4 | ||
LR_MILESTONE: [32, 48] | ||
STEP: 0.1 | ||
|
||
VAL: | ||
FREQ: 2 | ||
BATCH_SIZE: 8 | ||
|
||
DATA: | ||
TRAIN_ANNO_PATH: '/home/ubuntu/data/kinetics400/k400_train.txt' | ||
VAL_ANNO_PATH: '/home/ubuntu/data/kinetics400/k400_val.txt' | ||
TRAIN_DATA_PATH: '/home/ubuntu/data/kinetics400/train_256/' | ||
VAL_DATA_PATH: '/home/ubuntu/data/kinetics400/val_256/' | ||
NUM_CLASSES: 400 | ||
CLIP_LEN: 32 | ||
FRAME_RATE: 2 | ||
NUM_SEGMENT: 1 | ||
NUM_CROP: 1 | ||
TEST_NUM_SEGMENT: 10 | ||
TEST_NUM_CROP: 3 | ||
MULTIGRID: False | ||
KEEP_ASPECT_RATIO: True | ||
|
||
MODEL: | ||
NAME: 'ircsn_v2_resnet152_f32s2_kinetics400' | ||
PRETRAINED: False | ||
|
||
LOG: | ||
BASE_PATH: './logs/ircsn_v2_resnet152_f32s2_kinetics400' | ||
LOG_DIR: 'tb_log' | ||
SAVE_DIR: 'checkpoints' | ||
EVAL_DIR: './logs/ircsn_v2_resnet152_f32s2_kinetics400/eval' | ||
SAVE_FREQ: 2 |