cycleGAN-PyTorch
cycleGAN-PyTorch copied to clipboard
RuntimeError: Given groups=1, weight of size [64, 1, 7, 7], expected input[5, 64, 70, 70] to have 1 channels, but got 64 channels instead
Hello,
I am getting this error. I have implemented your code ,but written a custom dataset loader for my image patches.
Can you tell me how can I solve this error
Hi, It seems like your number of input channels doesn't match with the convolution filter you defined. Try to match the input channels with the channels you defined in the convolution kernel. Also, the error you posted isn't sufficient to comment more.
Good luck
I was trying to implement your model on gray scale images. For gray scale I changed the input channel to 1. I suppose thats why it was throwing this error.