-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from kazuto1011/develop
torch.hub support
- Loading branch information
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
# coding: utf-8 | ||
# | ||
# Author: Kazuto Nakashima | ||
# URL: https://kazuto1011.github.io | ||
# Date: 20 December 2018 | ||
|
||
|
||
def deeplabv2_resnet101(**kwargs): | ||
""" | ||
DeepLab v2 model with ResNet-101 backbone | ||
n_classes (int): the number of classes | ||
""" | ||
|
||
from libs.models.deeplabv2 import DeepLabV2 | ||
from libs.models.msc import MSC | ||
|
||
base = DeepLabV2(n_blocks=[3, 4, 23, 3], pyramids=[6, 12, 18, 24], **kwargs) | ||
model = MSC(scale=base, pyramids=[0.5, 0.75]) | ||
|
||
return model |