blanchon's picture
fix first-frame anchor + atomic crash; load models once; vendor trimmed o2laf
19583ce
Raw History Blame Contribute Delete
641 Bytes
"""Action encoders: models that infer latent actions from video.
This inference-only copy keeps :mod:`~o2laf.action_encoders.wan_dit`, which reads
Wan VAE latents with the Wan DiT trunk (the encoder every released model uses).
"""
from o2laf.action_encoders import wan_dit # noqa: F401 (registration)
from o2laf.action_encoders.base import build_action_encoder_spec
from o2laf.utils.registry import ACTION_ENCODER_REGISTRY
def build_action_encoder(name):
"""Return the action encoder class registered under ``name``."""
return ACTION_ENCODER_REGISTRY.get(name)
__all__ = ['build_action_encoder', 'build_action_encoder_spec']