megvii-research / RevCol

Official Code of Paper "Reversible Column Networks" "RevColv2"
Apache License 2.0
245 stars 10 forks source link

The class “Fusion” #19

Open BASPIRIT opened 4 months ago

BASPIRIT commented 4 months ago

The source code reads: self.down = nn.Sequential( nn.Conv2d(channels[level-1], channels[level], kernel_size=2, stride=2), LayerNorm(channels[level], eps=1e-6, data_format="channels_first"), ) if level in [1, 2, 3] else nn.Identity() So when level=0 and first_col=True, how do we implement downsampling?

nightsnack commented 4 months ago

level 0 does not need any downsample, if you do need one, just add one before level0