Spaces:
Running on Zero
Running on Zero
Download src/model/decoder/__init__.py from akhaliq/InfiniSplat: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/akhaliq/InfiniSplat/resolve/refs%2Fpr%2F1/src/model/decoder/__init__.py
- Command line
-
hf download hf://spaces/akhaliq/InfiniSplat@refs/pr/1/src/model/decoder/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/akhaliq/InfiniSplat/resolve/refs%2Fpr%2F1/src/model/decoder/__init__.py
438 Bytes
| from src.model.decoder.decoder import Decoder | |
| from src.model.decoder.decoder_gsplat import DecoderGsplat, DecoderGsplatCfg | |
| DECODERS = { | |
| "gsplat": DecoderGsplat, | |
| } | |
| DecoderCfg = DecoderGsplatCfg | |
| def get_decoder(cfg: DecoderCfg) -> Decoder: | |
| decoder = DECODERS[cfg.name] | |
| decoder = decoder(cfg) | |
| return decoder | |
| __all__ = [ | |
| "Decoder", | |
| "DecoderCfg", | |
| "DecoderGsplat", | |
| "DecoderGsplatCfg", | |
| "get_decoder", | |
| ] | |