ed1323aa16f4a5a1b17d32080ae40e1103ec6cca,pytorch/pytorchcv/models/deeplabv3.py,DeepLabv3,forward,#DeepLabv3#Any#,135
Before Change
_, _, h, w = x.size()
x = self.backbone(x)
x = self.pool(x)
x = self.conv1(x)
x = self.dropout(x)
x = self.conv2(x)
x = F.interpolate(x, size=(h, w), mode="bilinear", align_corners=True)
return x
def get_deeplabv3(backbone,
After Change
init.constant_(module.bias, 0)
def forward(self, x):
in_size = self.in_size if self.fixed_size else x.shape[2:]
x, y = self.backbone(x)
x = self.pool(x)
x = self.final_block(x, in_size)
if self.aux:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: osmr/imgclsmob
Commit Name: ed1323aa16f4a5a1b17d32080ae40e1103ec6cca
Time: 2019-04-02
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/deeplabv3.py
Class Name: DeepLabv3
Method Name: forward
Project Name: rusty1s/pytorch_geometric
Commit Name: 90e643c7a3727afef2caf932281e6ae91d62aac5
Time: 2020-06-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/cluster_gcn_ppi.py
Class Name: Net
Method Name: forward
Project Name: rusty1s/pytorch_geometric
Commit Name: f4622e59a087d04bc0628b52c33f0cc9f296223e
Time: 2020-12-24
Author: matthias.fey@tu-dortmund.de
File Name: examples/film.py
Class Name: Net
Method Name: forward