Open sunnyHelen opened 5 years ago
Can I use a grayscale image as the style image? There seems to be a channel problem. Do you know how to deal with it? Thank you for your help~
You will have to convert your grayscale image to 3D image as VGG takes 3 channel image as input. Also, you will have to change this line in utils.py img = transform(img)[:3, :, :].unsqueeze(0)
img = transform(img)[:3, :, :].unsqueeze(0)
Can I use a grayscale image as the style image? There seems to be a channel problem. Do you know how to deal with it? Thank you for your help~