Spaces:
Sleeping
Sleeping
Download O2LaF/o2laf/__init__.py from blanchon/O2LaF-Demo: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/spaces/blanchon/O2LaF-Demo/resolve/main/O2LaF/o2laf/__init__.py
- Command line
-
hf download hf://spaces/blanchon/O2LaF-Demo/O2LaF/o2laf/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/blanchon/O2LaF-Demo/resolve/main/O2LaF/o2laf/__init__.py
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}') | |