Closed xiangyangli-cn closed 9 years ago
@lxycnu : If you run the gradient ascent code, please install the lastest Caffe which supports that attribute backward_from_layer
. The Caffe version included in this repo is only for the evolutionary code.
I have tried the current version, but it also does not support the attribute of ' backward_from_layer. Maybe i can use 'backward' instead of '(Net.backward = _Net_backward) backward_from_layer '.
backout = net.backward_from_layer(push_layer, diffs)
...... I change it like this, but it still has some problem. Can you give me some suggestion?
@yosinski : Can you share which Caffe version you used to have working with find_fooling_image.py?
@anguyen8 @lxycnu Oops, I see that I forgot to push that modification to Caffe. I'll push it ASAP.
@lxycnu Try again using these updated instructions and the ascent branch. I just tried and it works for me.
when i run find_fooling_image.py This came: AttributeError: 'Classifier' object has no attribute 'backward_from_layer'. How can i fix it?