x = gan.graph.x
s = [int(x) for x in net.get_shape()]
shape = [s[1], s[2]]
if(shape[0]>32 or shape[1]>32):
return None
x = tf.image.resize_images(x, shape, 1)
print("Created bw ", x)
After Change
x = gan.graph.xfiltered
x = tf.image.resize_images(x, shape, 1)
else:
x = tf.image.resize_images(x, shape, 1)
gan.graph.xfiltered = x
print("set xfiltered", x, shape)
return x