Change output channels of transfer learning mmar models #611
-
Hi everyone! Thank you all! mmar = { unet_model = load_from_mmar( UNet( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @frmrz , sorry for late reply. Assume the actual Unet model you need has some layers that are different from the pretrained weights, you need to modify the state dict. For example, if you need a Unet that has 5 channels output, the code is like:
|
Beta Was this translation helpful? Give feedback.
Hi @frmrz , sorry for late reply.
Assume the actual Unet model you need has some layers that are different from the pretrained weights, you need to modify the state dict. For example, if you need a Unet that has 5 channels output, the code is like: