예제 #1
0
파일: read.py 프로젝트: razzmatazz/nn-brm
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)])
예제 #2
0
파일: dream.py 프로젝트: razzmatazz/nn-brm
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)