Skip to content

Commit

Permalink
updates denseblocks object arguments to add sqe
Browse files Browse the repository at this point in the history
  • Loading branch information
shayansiddiqui committed Nov 10, 2018
1 parent 3300fd4 commit ee468a2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions quicknat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
import torch.nn as nn
from nn_common_modules import modules as sm

from squeeze_and_excitation import squeeze_and_excitation as se

class QuickNat(nn.Module):
"""
Expand All @@ -26,17 +26,17 @@ def __init__(self, params):
"""
super(QuickNat, self).__init__()

self.encode1 = sm.EncoderBlock(params)
self.encode1 = sm.EncoderBlock(params, se_block_type=se.SELayer.SSE)
params['num_channels'] = 64
self.encode2 = sm.EncoderBlock(params)
self.encode3 = sm.EncoderBlock(params)
self.encode4 = sm.EncoderBlock(params)
self.bottleneck = sm.DenseBlock(params)
self.encode2 = sm.EncoderBlock(params, se_block_type=se.SELayer.SSE)
self.encode3 = sm.EncoderBlock(params, se_block_type=se.SELayer.SSE)
self.encode4 = sm.EncoderBlock(params, se_block_type=se.SELayer.SSE)
self.bottleneck = sm.DenseBlock(params, se_block_type=se.SELayer.SSE)
params['num_channels'] = 128
self.decode1 = sm.DecoderBlock(params)
self.decode2 = sm.DecoderBlock(params)
self.decode3 = sm.DecoderBlock(params)
self.decode4 = sm.DecoderBlock(params)
self.decode1 = sm.DecoderBlock(params, se_block_type=se.SELayer.SSE)
self.decode2 = sm.DecoderBlock(params, se_block_type=se.SELayer.SSE)
self.decode3 = sm.DecoderBlock(params, se_block_type=se.SELayer.SSE)
self.decode4 = sm.DecoderBlock(params, se_block_type=se.SELayer.SSE)
params['num_channels'] = 64
self.classifier = sm.ClassifierBlock(params)

Expand Down

0 comments on commit ee468a2

Please sign in to comment.