Skip to content

Commit

Permalink
Descending number of channel in decoding path ultralytics#18
Browse files Browse the repository at this point in the history
  • Loading branch information
manole-alexandru committed Apr 16, 2023
1 parent 58ae220 commit bfbd2d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,11 @@ class Seg(nn.Module):
def __init__(self, in_channels):
super().__init__()
print('SEG in channels: ', in_channels)
self.cv1 = Conv(in_channels, 32, k=3)
self.cv1 = Conv(in_channels, 128, k=3)
self.upsample = nn.Upsample(scale_factor=2, mode='nearest')
self.cv2 = Conv(32, 64, k=3)
self.cv3 = Conv(64, 64, k=3)
self.cv4 = Conv(64, 1, act=False)
self.cv2 = Conv(128, 64, k=3)
self.cv3 = Conv(64, 32, k=3)
self.cv4 = Conv(32, 1, act=False)
self.relu = nn.ReLU()

# self.dropout_weak = nn.Dropout(0.25)
Expand Down

0 comments on commit bfbd2d7

Please sign in to comment.