Closed swoook closed 3 years ago
DualResNet
in \${REPO_ROOT}/lib/models/ddrnet_23_slim.py outputs a tensor with size of (N, cls, H/8, W/8) where:num_classes
in the codes) is 19class DualResNet(nn.Module):
def __init__(self, block, layers, num_classes=19, planes=64, spp_planes=128, head_planes=128, augment=True):
seghead_extra.conv2.weight with shape torch.Size([19, 64, 1, 1])
seghead_extra.conv2.bias with shape torch.Size([19])
final_layer.conv2.weight with shape torch.Size([19, 64, 1, 1])
final_layer.conv2.bias with shape torch.Size([19])
num_classes=1
, it makes the shapes of some parameters like:seghead_extra.conv2.weight with shape torch.Size([1, 64, 1, 1])
seghead_extra.conv2.bias with shape torch.Size([1])
final_layer.conv2.weight with shape torch.Size([1, 64, 1, 1])
final_layer.conv2.bias with shape torch.Size([1])
Backgrounds
Issue description
Code example
System Info