ethanwharris / stawm Goto Github PK
View Code? Open in Web Editor NEWCode for the paper 'A Biologically Inspired Visual Working Memory for Deep Networks'
Home Page: https://arxiv.org/abs/1901.03665
Code for the paper 'A Biologically Inspired Visual Working Memory for Deep Networks'
Home Page: https://arxiv.org/abs/1901.03665
I am very interested in your recent ICLR2019 work. When will you publish the source code?
Hi,
I am wondering how do you plot the gif images. Mainly, how do you transfer the affine matrix to the red rhomboids in mnist.gif? It would be great if you kindly share the code.
Thank you very much!
Cheers,
Guozhang
hello sir! I tried to run your code,but there are some bug and do not know how to solve,here are the Traceback :
MNIST:
File "/home/sdc/Desktop/STAWM-master/mnist_class_28.py", line 121, in
run(8, 512)
File "/home/sdc/Desktop/STAWM-master/mnist_class_28.py", line 115, in run
trial.run(200)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 121, in wrapper
res = func(self, *args, **kwargs)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 703, in run
final_metrics = self._fit_pass(state)[torchbearer.METRICS]
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 276, in wrapper
res = func(self, *args, **kwargs)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 768, in _fit_pass
state[torchbearer.OPTIMIZER].step(closure)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/optim/adam.py", line 58, in step
loss = closure()
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 752, in closure
state[torchbearer.Y_PRED] = state[torchbearer.MODEL](state[torchbearer.X], state=state)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/sdc/Desktop/STAWM-master/mnist_class_28.py", line 83, in forward
x = self.memory.glimpse(x, image)
File "/home/sdc/Desktop/STAWM-master/memory.py", line 112, in glimpse
x = self.locator(pose, image)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/sdc/Desktop/STAWM-master/modules.py", line 29, in forward
theta = theta.view(x.size(0), 2, 4)
RuntimeError: shape '[128, 2, 4]' is invalid for input of size 768
Celeba:
File "/home/sdc/Desktop/STAWM-master/celeba_draw_32.py", line 292, in
run(8, 32, 128, 0, device='cuda')
File "/home/sdc/Desktop/STAWM-master/celeba_draw_32.py", line 288, in run
trial.run(100)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 121, in wrapper
res = func(self, *args, **kwargs)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 703, in run
final_metrics = self._fit_pass(state)[torchbearer.METRICS]
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 276, in wrapper
res = func(self, *args, **kwargs)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 768, in _fit_pass
state[torchbearer.OPTIMIZER].step(closure)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/optim/adam.py", line 58, in step
loss = closure()
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torchbearer/trial.py", line 752, in closure
state[torchbearer.Y_PRED] = state[torchbearer.MODEL](state[torchbearer.X], state=state)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/sdc/Desktop/STAWM-master/celeba_draw_32.py", line 146, in forward
x, inverse = self.memory.glimpse(x, image)
File "/home/sdc/Desktop/STAWM-master/memory.py", line 112, in glimpse
x = self.locator(pose, image)
File "/home/sdc/Desktop/test/test/lib/python3.5/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/sdc/Desktop/STAWM-master/modules.py", line 29, in forward
theta = theta.view(x.size(0), 2, 4)
RuntimeError: shape '[128, 2, 4]' is invalid for input of size 192
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.