4999f9795af7a21ca69adf5f72301b79f719498e,gluoncv/model_zoo/pspnet.py,PSPNet,__init__,#PSPNet#Any#Any#Any#Any#,33
Before Change
self.head.collect_params().setattr("lr_mult", 10)
if self.aux:
self.auxlayer = _FCNHead(1024, nclass, norm_layer=norm_layer, **kwargs)
self.auxlayer.initialize()
self.auxlayer.collect_params().setattr("lr_mult", 10)
def forward(self, x):
_, _, H, W = x.shape
After Change
self.head = _PSPHead(nclass, norm_layer=norm_layer, **kwargs)
self.head.initialize()
self.head.collect_params().setattr("lr_mult", 10)
if self.aux:
self.auxlayer = _FCNHead(1024, nclass, norm_layer=norm_layer, **kwargs)
self.auxlayer.initialize()
self.auxlayer.collect_params().setattr("lr_mult", 10)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: dmlc/gluon-cv
Commit Name: 4999f9795af7a21ca69adf5f72301b79f719498e
Time: 2018-06-05
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: gluoncv/model_zoo/pspnet.py
Class Name: PSPNet
Method Name: __init__
Project Name: pytorch/fairseq
Commit Name: 01be083e46d2e4614dc274b0edf29d0ddd516186
Time: 2020-10-27
Author: myleott@fb.com
File Name: fairseq/dataclass/utils.py
Class Name:
Method Name: convert_namespace_to_omegaconf
Project Name: shibing624/pycorrector
Commit Name: da4fb19182efba7523c70c8051d9dee1038b09e7
Time: 2018-03-12
Author: 507153809@qq.com
File Name: pycorrector/corrector.py
Class Name:
Method Name: