Description Usage Arguments Value
Style loss is calculated by weighting loss from multiple layers. For each chosen layer, the loss measures the relative activation of the channels making up that layer.
1 2 3 4 5 | .calculate_style_loss(
input_style_features,
generated_style_features,
style_lambdas
)
|
input_style_features |
A list of tensors, each containing features extracted from a single layer for which style matters. |
generated_style_features |
A list of tensors, the same length as input_style_features, with the equivalent features from the generated image. |
style_lambdas |
The weights associated with each layer. |
A length-1 object inheriting from class "torch_tensor" with the loss between the generated layers and the style layers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.