Spaces:
Running on Zero
Running on Zero
multimodalart HF Staff
Learn2Splat ZeroGPU demo: app, vendored optgs, prebuilt sm_120 wheels
9196862 verified Download optgs/experimental/api/__init__.py from hugging-apps/learn2splat: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/spaces/hugging-apps/learn2splat/resolve/main/optgs/experimental/api/__init__.py
- Command line
-
hf download hf://spaces/hugging-apps/learn2splat/optgs/experimental/api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hugging-apps/learn2splat/resolve/main/optgs/experimental/api/__init__.py
728 Bytes
| """optgs experimental API — use the learned optimizer in external 3DGS codebases. | |
| The public entry point is :class:`OptGS`. It is exposed lazily via PEP 562 | |
| ``__getattr__`` so that ``import optgs.experimental.api`` stays cheap (no | |
| torch/hydra import) until ``OptGS`` is actually accessed. | |
| """ | |
| __all__ = ["OptGS", "OptGSError"] | |
| def __getattr__(name: str): | |
| if name == "OptGS": | |
| from optgs.experimental.api.api import OptGS | |
| return OptGS | |
| if name == "OptGSError": | |
| from optgs.experimental.api.integration.scene_protocol import OptGSError | |
| return OptGSError | |
| raise AttributeError(f"module 'optgs.experimental.api' has no attribute {name!r}") | |
| def __dir__(): | |
| return sorted(__all__) | |