From ba682e49c3b430cdfde5e76eeeac6e5e085e8813 Mon Sep 17 00:00:00 2001 From: dreamerlin <528557675@qq.com> Date: Fri, 9 Apr 2021 17:11:18 +0800 Subject: [PATCH] init --- docs/tutorials/5_new_modules.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/tutorials/5_new_modules.md b/docs/tutorials/5_new_modules.md index 0652c3f7af..861fa32c95 100644 --- a/docs/tutorials/5_new_modules.md +++ b/docs/tutorials/5_new_modules.md @@ -128,9 +128,6 @@ Here we show how to develop new components with an example of TSN. def forward(self, x): # should return a tuple pass - - def init_weights(self, pretrained=None): - pass ``` 2. Import the module in `mmaction/models/backbones/__init__.py`. @@ -158,7 +155,7 @@ Here we show how to develop a new head with the example of TSNHead as the follow 1. Create a new file `mmaction/models/heads/tsn_head.py`. You can write a new classification head inheriting from [BaseHead](/mmaction/models/heads/base.py), - and overwrite `init_weights(self)` and `forward(self, x)` method. + and overwrite `forward(self, x)` method. ```python from ..registry import HEADS @@ -173,9 +170,6 @@ Here we show how to develop a new head with the example of TSNHead as the follow def forward(self, x): pass - - def init_weights(self): - pass ``` 2. Import the module in `mmaction/models/heads/__init__.py`