irtk.loss.total_variation_loss¶
- irtk.loss.total_variation_loss(texture: torch.Tensor, texture_mask: torch.Tensor) torch.Tensor ¶
Computes the total variation L1 (TV-L1) loss of the given texture.
- Parameters:
texture – The texture in PyTorch format.
texture_mask – A mask for the texture.
- Returns:
The TV-L1 loss of the given texture.