From 82c533bee0de1a84f5959e257815eb7df4e69162 Mon Sep 17 00:00:00 2001 From: Korabelnikov Aleks <nesoriti@yandex.ru> Date: Sat, 26 Oct 2019 16:47:23 +0300 Subject: [PATCH] Update GETTING_STARTED.md (#1580) Found out that this method is required. The torch.nn.Module doesn't contain this method thus you need to implement it --- docs/GETTING_STARTED.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 7131e11..68a54cb 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -357,6 +357,9 @@ class MobileNet(nn.Module): def forward(x): # should return a tuple pass + + def init_weights(self, pretrained=None): + pass ``` 2. Import the module in `mmdet/models/backbones/__init__.py`. -- GitLab