bluspater commited on
Commit
6893f8e
·
verified ·
1 Parent(s): e46c179

Update model/backbones.py

Browse files
Files changed (1) hide show
  1. model/backbones.py +3 -3
model/backbones.py CHANGED
@@ -2,9 +2,9 @@ import torch.nn as nn
2
  import torchvision.models as models
3
 
4
 
5
- SUPPORTED_BACKBONES = [
6
- 'mobilenetv2'
7
- ]
8
 
9
 
10
  def build_backbone(backbone_name):
 
2
  import torchvision.models as models
3
 
4
 
5
+ SUPPORTED_BACKBONES = {
6
+ 'mobilenetv2': lambda in_channels: models.mobilenet_v2(pretrained=True).features
7
+ }
8
 
9
 
10
  def build_backbone(backbone_name):