Skip to content

Commit

Permalink
Update GETTING_STARTED.md (open-mmlab#1580)
Browse files Browse the repository at this point in the history
Found out that this method is required. The torch.nn.Module doesn't contain this method thus you need to implement it
  • Loading branch information
korabelnikov authored and hellock committed Oct 26, 2019
1 parent 1f3e273 commit 82c533b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 82c533b

Please sign in to comment.