O2LaF-Demo / O2LaF /o2laf /__init__.py
blanchon's picture
fix first-frame anchor + atomic crash; load models once; vendor trimmed o2laf
19583ce
Raw History Blame Contribute Delete
821 Bytes
"""O²LaF: latent action learning and action-conditioned world models on Wan 2.2."""
__version__ = '0.1.0'
__all__ = ['ActionAttentionExtractor', 'ActionGuidance', 'AttentionRenderConfig', 'LatentActionPipeline']
def __getattr__(name):
# Lazy, so that importing a training module does not load the inference stack.
if name == 'LatentActionPipeline':
from o2laf.inference.pipeline import LatentActionPipeline
return LatentActionPipeline
if name == 'ActionGuidance':
from o2laf.inference.sampling import ActionGuidance
return ActionGuidance
if name in ('ActionAttentionExtractor', 'AttentionRenderConfig'):
from o2laf.inference import attention
return getattr(attention, name)
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')