db021aa9ee8ee2ac381f2778377c05de7ded38b5,gluoncv/model_zoo/pspnet.py,_PSPHead,__init__,#_PSPHead#Any#Any#Any#,100
Before Change
self.psp = _PyramidPooling(2048, norm_layer=norm_layer,
norm_kwargs=norm_kwargs)
with self.name_scope():
self.block = nn.HybridSequential(prefix="")
self.block.add(nn.Conv2D(in_channels=4096, channels=512,
kernel_size=3, padding=1, use_bias=False))
self.block.add(norm_layer(in_channels=512, **({} if norm_kwargs is None else norm_kwargs)))
self.block.add(nn.Activation("relu"))
self.block.add(nn.Dropout(0.1))
self.block.add(nn.Conv2D(in_channels=512, channels=nclass,
kernel_size=1))
def hybrid_forward(self, F, x):
x = self.psp(x)
return self.block(x)
After Change
def __init__(self, in_channels, height=60, width=60, **kwargs):
super(_PyramidPooling, self).__init__()
out_channels = int(in_channels/4)
self._up_kwargs = {"height": height, "width": width}
with self.name_scope():
self.conv1 = _PSP1x1Conv(in_channels, out_channels, **kwargs)
self.conv2 = _PSP1x1Conv(in_channels, out_channels, **kwargs)
self.conv3 = _PSP1x1Conv(in_channels, out_channels, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 17
Instances
Project Name: dmlc/gluon-cv
Commit Name: db021aa9ee8ee2ac381f2778377c05de7ded38b5
Time: 2019-02-26
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: gluoncv/model_zoo/pspnet.py
Class Name: _PSPHead
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: db021aa9ee8ee2ac381f2778377c05de7ded38b5
Time: 2019-02-26
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: gluoncv/model_zoo/pspnet.py
Class Name: _PSPHead
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: gluoncv/model_zoo/nasnet.py
Class Name: BranchSeparablesReduction
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: gluoncv/model_zoo/resnext.py
Class Name: Block
Method Name: __init__