The code looks good.
Could you print the shapes of the loaded images (imgs['bicubic_np'], imgs['sharp_np'] and imgs['nearest_np'])?
It seems some or all of your images are single channel images, which yields the error message.