def run(): image = read() input = list(read_image(image)) net = Network.load(LAYER1_FILENAME) hidden = net.forward(input) for _ in xrange(5): print_images([net.backwards(hidden)])
def run(): net = Network.load(LAYER1_FILENAME) input = [.0] * IMAGE_DIM * IMAGE_DIM while True: hidden = net.forward(input) input = net.backwards(hidden) print_images([input]) time.sleep(.075)