Recently faced trying to tackle this. The solution is to change the first ConvLayer to where it’s ni is 1. To do so assume we have made an encoder via doing create_body (this example is a resnet34):
OK, I’m working on B&W spectrograms and found that Resnet expects RGB so I added the single channel as two additional layers as shown by my programmatic checks of my images:
the shape of pix is: (224, 224, 3)
image format: PNG
image size: (224, 224)
image mode: RGB
I am getting what appear to be poor loss results from resnet18 and 34 and am not sure what you are saying here. create_body states:
"Cut off the body of a typically pretrained arch as determined by cut"
What would ever make me think that that would solve my problems? Can you point to a source that discusses this type of detail? The API doesn’t provide any information that is intelligible to me.