HeatmapJSLoss

class lightning_pose.losses.losses.HeatmapJSLoss(data_module: BaseDataModule | UnlabeledDataModule | None = None, log_weight: float = 0.0, **kwargs)[source]

Bases: HeatmapLoss

Kullback-Leibler loss between heatmaps.

Methods Summary

compute_loss(targets, predictions)

Methods Documentation

compute_loss(targets: Tensor[Tensor], predictions: Tensor[Tensor]) Tensor[Tensor][source]