Spaces:
Running on Zero
Running on Zero
Download src/model/types.py from ricklon/InfiniSplat: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/ricklon/InfiniSplat/resolve/main/src/model/types.py
- Command line
-
hf download hf://spaces/ricklon/InfiniSplat/src/model/types.py
-
curl -L -o types.py https://huggingface.co/spaces/ricklon/InfiniSplat/resolve/main/src/model/types.py
499 Bytes
| from typing import TypedDict | |
| from jaxtyping import Float | |
| from torch import Tensor | |
| class BatchedViews(TypedDict, total=False): | |
| """Single- or multi-view tensors consumed by the inference encoders.""" | |
| extrinsics: Float[Tensor, "batch view 4 4"] | |
| intrinsics: Float[Tensor, "batch view 3 3"] | |
| image: Float[Tensor, "batch view channel height width"] | |
| prompt_disparity: Float[Tensor, "batch view channel height width"] | |
| prompt_mask: Float[Tensor, "batch view channel height width"] | |