Detectron.pytorch icon indicating copy to clipboard operation
Detectron.pytorch copied to clipboard

Why freeze all bn (affine) layers?

Open lilichu opened this issue 5 years ago • 1 comments

lilichu avatar Jan 04 '19 07:01 lilichu

https://github.com/roytseng-tw/Detectron.pytorch/blob/8315af319cd29b8884a7c0382c4700a96bf35bbc/lib/modeling/ResNet.py#L76

    def _init_modules(self):
        # Freeze all bn (affine) layers !!!
        self.apply(lambda m: freeze_params(m) if isinstance(m, mynn.AffineChannel2d) else None)

lilichu avatar Jan 07 '19 05:01 lilichu