style-transfer icon indicating copy to clipboard operation
style-transfer copied to clipboard

Some about implementation

Open DavieHR opened this issue 7 years ago • 2 comments

Hi,Frank. BRILLIANT WORK. BUT, I have some question about your implementation. In the file style.py ,you write the code in the line 184 to 210. grad = net.blobs[layer].diff[0] grad += wl * g.reshape(grad.shape) * ratio grad = net.blobs[next_layer].diff[0] why you sum the net grad to the loss grad? and why you use the next_layer grad to override the total grad? THANK YOU!

DavieHR avatar Aug 09 '16 14:08 DavieHR