Skip to content

Commit

Permalink
[Improvement] Add kwargs to STGCNHead (open-mmlab#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlleshi authored Apr 7, 2022
1 parent 6ea00d2 commit fbb8684
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mmaction/models/heads/stgcn_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class STGCNHead(BaseHead):
spatial_type (str): Pooling type in spatial dimension. Default: 'avg'.
num_person (int): Number of person. Default: 2.
init_std (float): Std value for Initiation. Default: 0.01.
kwargs (dict, optional): Any keyword argument to be used to initialize
the head.
"""

def __init__(self,
Expand All @@ -26,8 +28,9 @@ def __init__(self,
loss_cls=dict(type='CrossEntropyLoss'),
spatial_type='avg',
num_person=2,
init_std=0.01):
super().__init__(num_classes, in_channels, loss_cls)
init_std=0.01,
**kwargs):
super().__init__(num_classes, in_channels, loss_cls, **kwargs)

self.spatial_type = spatial_type
self.in_channels = in_channels
Expand Down

0 comments on commit fbb8684

Please sign in to comment.