alterzero / DBPN-Pytorch

The project is an official implement of our CVPR2018 paper "Deep Back-Projection Networks for Super-Resolution" (Winner of NTIRE2018 and PIRM2018)
https://alterzero.github.io/projects/DBPN.html
MIT License
565 stars 164 forks source link

What's class D_DownBlock(torch.nn.Module) mean?What's num_stages mean? #45

Open yangyingni opened 5 years ago

yangyingni commented 5 years ago

class D_DownBlock(torch.nn.Module): def init(self, num_filter, kernel_size=8, stride=4, padding=2, num_stages=1, bias=True, activation='prelu', norm=None) super(D_DownBlock, self).init() self.conv = ConvBlock(num_filter*num_stages, num_filter, 1, 1, 0, activation, norm=None) self.down_conv1 = ConvBlock(num_filter, num_filter, kernel_size, stride, padding, activation, norm=None) self.down_conv2 = DeconvBlock(num_filter, num_filter, kernel_size, stride, padding, activation, norm=None) self.down_conv3 = ConvBlock(num_filter, num_filter, kernel_size, stride, padding, activation, norm=None)

Why it started with conv,then down_conv1,down_conv2,down_conv3?What's difference between  DownBlock?What's num_stages mean?Thank you.