File size: 821 Bytes
19583ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""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}')