Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions models/networks_3d/dmfnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def forward(self, x):
return x4 + shortcut

class DMFUnit(nn.Module):
# weighred add
# weighted add
def __init__(self, num_in, num_out, g=1, stride=1,norm=None,dilation=None):
super(DMFUnit, self).__init__()
self.weight1 = nn.Parameter(torch.ones(1))
Expand All @@ -100,7 +100,7 @@ def __init__(self, num_in, num_out, g=1, stride=1,norm=None,dilation=None):
num_mid = num_in if num_in <= num_out else num_out

self.conv1x1x1_in1 = Conv3d_Block(num_in, num_in // 4, kernel_size=1, stride=1, norm=norm)
self.conv1x1x1_in2 = Conv3d_Block(num_in // 4,num_mid,kernel_size=1, stride=1, norm=norm)
self.conv1x1x1_in2 = Conv3d_Block(num_in // 4, num_mid, kernel_size=1, stride=1, norm=norm)

self.conv3x3x3_m1 = nn.ModuleList()
if dilation == None:
Expand Down