Keras 3 API 文档 / KerasCV / 损失函数 / SimCLR 损失函数

SimCLR 损失函数

[source]

SimCLRLoss class

keras_cv.losses.SimCLRLoss(temperature, **kwargs)

Implements SimCLR Cosine Similarity loss.

SimCLR loss is used for contrastive self-supervised learning.

Arguments

  • temperature: a float value between 0 and 1, used as a scaling factor for cosine similarity.

References