Encoder components¶
Use these encoder: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 |
|---|---|
encoder:mae_vit |
ViT-B/16 by default; configure dim=384, heads=6 for ViT-S/16. |
encoder:resnet18 |
Small encoder for cheap experiments; 512-wide pooled feature. |
encoder:resnext50 |
torchvision ResNeXt-50 with the final fc layer removed; output is the |
encoder:text_bow |
CVCL text encoder: an utterance is encoded as the mean of its learned word |
encoder:toy_cnn |
Tiny 3-block convnet for tests and examples (no weight downloads). |
encoder:toy_video |
Per-frame toy CNN, mean-pooled over time. For tests and interface |
encoder:video_vit |
Video ViT the way V-JEPA 2 builds one: tubelet embedding (a 3D conv |
encoder:vjepa2 |
No description. |
encoder:mae_vit¶
ViT-B/16 by default; configure dim=384, heads=6 for ViT-S/16.
Defining module / _imports_: egolearn.methods.mae.model.
MAEEncoder(image_size: int = 224, patch_size: int = 16, dim: int = 768, depth: int = 12, heads: int = 12, mlp_ratio: float = 4.0, pooling: str = "cls", drop_path_rate: float = 0.0)
encoder:resnet18¶
Small encoder for cheap experiments; 512-wide pooled feature.
Defining module / _imports_: egolearn.model.encoders.image.
ResNet18Encoder(pretrained: bool = False)
encoder:resnext50¶
torchvision ResNeXt-50 with the final fc layer removed; output is the
Defining module / _imports_: egolearn.model.encoders.image.
ResNeXt50Encoder(pretrained: bool = False)
encoder:text_bow¶
CVCL text encoder: an utterance is encoded as the mean of its learned word
Defining module / _imports_: egolearn.methods.babycl.model.
TextBowEncoder(vocab_size: int, dim: int = 512, pad_id: int = 0)
encoder:toy_cnn¶
Tiny 3-block convnet for tests and examples (no weight downloads).
Defining module / _imports_: egolearn.model.encoders.image.
ToyCNNEncoder(dim: int = 64)
encoder:toy_video¶
Per-frame toy CNN, mean-pooled over time. For tests and interface
Defining module / _imports_: egolearn.model.encoders.video.
ToyVideoEncoder(dim: int = 64)
encoder:video_vit¶
Video ViT the way V-JEPA 2 builds one: tubelet embedding (a 3D conv
Defining module / _imports_: egolearn.model.encoders.video.
VideoViTEncoder(dim: int = 384, depth: int = 12, heads: int = 6, patch: int = 16, tubelet: int = 2, mlp_ratio: float = 4.0, norm_eps: float = 1e-5, rope_convention: str = "paired")
encoder:vjepa2¶
No description.
Defining module / _imports_: egolearn.methods.vjepa2.model.
VJEPA2Encoder(dim: int = 384, depth: int = 12, heads: int = 6, patch: int = 16, tubelet: int = 2, mlp_ratio: float = 4.0)