Skip to content

Loss components

Use these loss:name targets in configuration _target_ fields. Add the defining module to _imports_ to register a component explicitly. Method components and benchmark probes require these imports.

Target Description
loss:clip_infonce No description.
loss:mae Named encoder/decoder MAE loss; masks derive from run seed, step and view.
loss:ntxent No description.
loss:supcon Contrast frames using labels supplied by the batch's selected slots.
loss:tcl No description.
loss:vjepa No description.
loss:vjepa2 No description.

loss:clip_infonce

No description.

Defining module / _imports_: egolearn.model.losses.clip_infonce.

ClipInfoNCE(slot: str, vision_head: str, temperature: float = 0.07, use_sample_weights: bool = False, name: str = "cross_modal", weight: float = 1.0)

loss:mae

Named encoder/decoder MAE loss; masks derive from run seed, step and view.

Defining module / _imports_: egolearn.methods.mae.loss.

MAE(slot: str, encoder: str, predictor: str, mask_ratio: float = 0.75, norm_pix_loss: bool = True, precision: str = "float32", name: str = "mae", weight: float = 1.0)

loss:ntxent

No description.

Defining module / _imports_: egolearn.model.losses.ntxent.

NTXent(slots: list[str], head: str, temperature: float = 0.1, name: str = "instance", weight: float = 1.0)

loss:supcon

Contrast frames using labels supplied by the batch's selected slots.

Defining module / _imports_: egolearn.model.losses.supcon.

SupervisedContrastive(slots: list[str], head: str, temperature: float = 0.2, name: str = "temporal", weight: float = 1.0)

loss:tcl

No description.

Defining module / _imports_: egolearn.model.losses.tcl.

TemporalClassification(slots: list[str], head: str, num_classes: int, filter_unseen: bool = True, name: str = "temporal", weight: float = 1.0)

loss:vjepa

No description.

Defining module / _imports_: egolearn.model.losses.vjepa.

VJEPA(slot: str, context: str, target: str, predictor: str, masks: dict[str, dict] | None = None, ema: tuple[float, float] = (0.998, 1.0), name: str = "jepa", weight: float = 1.0)

loss:vjepa2

No description.

Defining module / _imports_: egolearn.methods.vjepa2.loss.

VJEPA2(slot: str, context: str, target: str, predictor: str, masks: dict[str, dict] | None = None, ema: tuple[float, float] = (0.998, 0.998), precision: str = "float32", name: str = "jepa", weight: float = 1.0)