Replies: 4 comments
-
If you simply change your in_channels from 3 to 5, this will not occur a running error but some potential problems may occur:
|
Beta Was this translation helpful? Give feedback.
-
When changing in_channels from 3 to 5, the model's first layer is changed to have 5 channels to accept the input. This does not match the pre-trained model, so the pre-trained weight of the first layer will not be successfully loaded. This will cause warnings in the log as you will find |
Beta Was this translation helpful? Give feedback.
-
Is there a better way to improve accuracy of using 5-channel images? E.g.
Any suggestion would be really appreciated! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I am training my custom dataset (multispectral images with 5 channels) with the fasterrcnn and backbone resnet 50. What i did to adapt the model to my dataset is simply changed the in_channels of the backbone to 5. I'm glad it worked without changing any code, but meanwhile i'm just wondering why it can also work with a pretrained model with in_channels=3, if i changed the channels of the first layer of backbone?
Thanks in advance for any explanation!
Beta Was this translation helpful? Give feedback.
All reactions