Download core/registry.py from KCBtheone/SplatAtlas: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/KCBtheone/SplatAtlas/resolve/main/core/registry.py
- Command line
-
hf download hf://KCBtheone/SplatAtlas/core/registry.py
-
curl -L -o registry.py https://huggingface.co/KCBtheone/SplatAtlas/resolve/main/core/registry.py
268 Bytes
| from typing import Dict, Type | |
| from .base_method import BaseMethod | |
| METHOD_REGISTRY: Dict[str, Type[BaseMethod]] = {} | |
| def register_method(name: str): | |
| def decorator(cls: Type[BaseMethod]): | |
| METHOD_REGISTRY[name] = cls | |
| return cls | |
| return decorator | |