style-transfer
style-transfer copied to clipboard
Some about implementation
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!