Relative Content

Tag Archive for pythondeep-learningimage-segmentationvgg-net

Given groups=1, weight of size [64, 3, 3, 3], expected input[32, 256, 256, 3] to have 3 channels, but got 256 channels instead

I have implemented a deep learning model using VGG19 as a backbone with an FPN (Feature Pyramid Network) architecture for an image segmentation task. Size of my images are (256,256). However, I am facing the error this error: Given groups=1, weight of size [64, 3, 3, 3], expected input[32, 256, 256, 3] to have 3 channels, but got 256 channels instead
I am unable to resolve this error. Here is my code. Suggest some possible solution.