Generating Image from Model
I am trying the following to generate a color image from the model.
`im = Image.fromarray((img_vdsr_y * 255).astype(np.uint8))
imycbcr = im.convert("YCbCr")
(y, cb, cr) = imycbcr.split()
origimage = Image.open(originalFilePath)
origimage = origimage.resize((input_y.shape[1], input_y.shape[0]), Image.ANTIALIAS)
origycbcr = origimage.convert('YCbCr')
(yO, cbO, crO) = origycbcr.split()
finalImage = Image.merge('YCbCr', (y, cbO, crO)) `
The resulting image is a color image, but the quality is worse than the original and it has random black pixels throughout. Does anyone know a better way to take the ndarray img_vdsr_y and combine that with the cb and cr channels from the original image?
Hi, I had the same problem, did you solve the problem? If so, how did you solve it? Thanks :)
hi, guys, did you solve the problem and get the rgb image?
Hi ColdCodeCool,
I apologize. We did eventually figure this out, but it was long enough ago that I don't have the repo on my comp anymore, and I can't remember the exact solution. But it had something to do with the conversion to YCbCrin TEST.py. Sorry I couldn't help more.
rickstep