So I've been changing a code of someone else to make my computer deep dream because it didn't work, I already solved a couple errors but I'm not able to fix this one. Thanks in advance.
THIS IS THE ORIGINAL GITHUB PROJECT https://github.com/cysmith/neural-style-tf
THIS IS THE ERROR I GET
File "E:\anaconda\neural-style-tf-master\neural_style.py", line 362, in style_layer_loss
M = h.value * w.value
AttributeError: 'int' object has no attribute 'value'
THIS IS THE CODE AROUND LINE 362
def style_layer_loss(a, x):
_, h, w, d = a.get_shape()
M = h.value * w.value
N = d.value
A = gram_matrix(a, M, N)
G = gram_matrix(x, M, N)
loss = (1./(4 * N**2 * M**2)) * tf.reduce_sum(tf.pow((G - A), 2))
return loss
THIS IS MY PARTIALLY REPROGRAMMED VERSION OF neural_style.py
https://github.com/nicolai256/ERROR/blob/master/neural_style.py