MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / style_loss

Function style_loss

cnn_class2/style_transfer2.py:42–43  ·  view source on GitHub ↗
(y, t)

Source from the content-addressed store, hash-verified

40
41
42def style_loss(y, t):
43 return K.mean(K.square(gram_matrix(y) - gram_matrix(t)))
44
45
46# let's generalize this and put it into a function

Callers 2

style_transfer3.pyFile · 0.90
style_transfer2.pyFile · 0.85

Calls 1

gram_matrixFunction · 0.85

Tested by

no test coverage detected