How to change pretrained model from 3 RGB Channels to 4 Channels without causing non- leaf tensor value error?

Here is a working solution for ResNet:

1 Like