Skip to content

Commit

Permalink
Add ICNet
Browse files Browse the repository at this point in the history
  • Loading branch information
adam9500370 authored and meetps committed Apr 20, 2018
1 parent 6d73a6e commit 730b5af
Show file tree
Hide file tree
Showing 3 changed files with 560 additions and 33 deletions.
8 changes: 8 additions & 0 deletions ptsemseg/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from ptsemseg.models.segnet import *
from ptsemseg.models.unet import *
from ptsemseg.models.pspnet import *
from ptsemseg.models.icnet import *
from ptsemseg.models.linknet import *
from ptsemseg.models.frrn import *

Expand Down Expand Up @@ -34,6 +35,11 @@ def get_model(name, n_classes, version=None):
elif name == 'pspnet':
model = model(n_classes=n_classes, version=version)

elif name == 'icnet':
model = model(n_classes=n_classes, with_bn=False, version=version)
elif name == 'icnetBN':
model = model(n_classes=n_classes, with_bn=True, version=version)

else:
model = model(n_classes=n_classes)

Expand All @@ -48,6 +54,8 @@ def _get_model_instance(name):
'unet': unet,
'segnet': segnet,
'pspnet': pspnet,
'icnet': icnet,
'icnetBN': icnet,
'linknet': linknet,
'frrnA': frrn,
'frrnB': frrn,
Expand Down
Loading

0 comments on commit 730b5af

Please sign in to comment.