Description Usage Arguments Value
The style loss for each layer is calculated by comparing the Gram matrix for that style layer to the Gram matrix for the equivalent generated layer. The intention is for this to act as a measurement that the different channels that make up a layer are activated to the same proportion between the style layer and the generated layer. For example, if this layer "cares" that all vertical lines in the style layer are orange, measure how untrue that is for the generated layer.
1 | .calculate_style_layer_loss(style_layer, generated_layer)
|
style_layer |
Features extracted from a single style layer. |
generated_layer |
Features extracted from a single generated layer. Should be the same layer as style_layer. |
A scalar torch_tensor representing the loss for this layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.