from __future__ import division import matplotlib.pyplot as plt import numpy as np import tensorflow as tf imgs = [[[[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[255, 0, 0…