Open melwazir opened 4 years ago
Need to remove the alpha channel by converting RGBA to RGB
add the following code to resolve_and_plot():
if len(lr.shape) > 2 and lr.shape[2] == 4:
#convert the image from RGBA2RGB
lr = cv2.cvtColor(lr, cv2.COLOR_BGRA2BGR)
works fine for me now
I get this message:
InvalidArgumentError: Incompatible shapes: [1,363,258,4] vs. [3] [Op:Sub]
When I removed the alpha channel:
InvalidArgumentError: Incompatible shapes: [1,365,260] vs. [3] [Op:Sub]