how to fix feature encoder weights during SS process
mengruwg opened this issue · 2 comments
mengruwg commented
during pythorch version
new_weight = self.weight.mul(new_mtl_weight)(line 95 in conv2d_mtl.py)
self.weight = Parameter(torch.Tensor(out_channels, in_channels // groups, *kernel_size))(line 42 in conv2d_mtl.py)
How to load pretrained and fix feature encoder weights during SS process?
yaoyao-liu commented
How to freeze the convolution weights?
If you set mtl=True
in the following line:
It means that you're using _ConvNdMtl
function, so
i.e., the convolution weights are frozen.
How to load the pre-trained model?
You may directly load normal checkpoints to MTL models like this:
If you have any further questions, feel free to ask.