1from smaction.models.backbones.stgcn
import STGCN
2from smaction.models.heads.gcn_head
import GCNHead
3from smaction.models.backbones.resnet3d
import ResNet3d
4from smaction.models.heads.i3d_head
import I3DHead
5from smaction.models.heads.i3d_fusion
import I3DFusion
6from smaction.models.heads.linear_head
import LinearHead
7from smaction.models.heads.mlp_head
import MLPHead
8from smaction.models.backbones.resnet2d
import ResNet2d
9from smaction.models.heads.cat_layer
import CatLayer
15 "ResNet3d" : ResNet3d,
17 "I3DFusion" : I3DFusion,
18 "LinearHead" : LinearHead,
20 "ResNet2d" : ResNet2d,
21 "CatLayer" : CatLayer,
26 action/models 의 모듈을 빌드하는 함수
29 type -> 모듈의 타입 __model_builders__의 키값이 들어가야함
30 type을 제외한 나머지 파라미터는 모듈의 파라미터값이 있어야함
35 assert args.type
in __model_builders__, \
36 f
'not found action model type : {args.type}'
38 runner_builder = __model_builders__[args.type]
39 runner_args = args.copy()
40 runner_args.pop(
'type')