Download src/model/encoder/visualization/encoder_visualizer.py from bill1230/AnySplat: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/bill1230/AnySplat/resolve/main/src/model/encoder/visualization/encoder_visualizer.py
- Command line
-
hf download hf://spaces/bill1230/AnySplat/src/model/encoder/visualization/encoder_visualizer.py
-
curl -L -o encoder_visualizer.py https://huggingface.co/spaces/bill1230/AnySplat/resolve/main/src/model/encoder/visualization/encoder_visualizer.py
561 Bytes
| from abc import ABC, abstractmethod | |
| from typing import Generic, TypeVar | |
| from jaxtyping import Float | |
| from torch import Tensor | |
| T_cfg = TypeVar("T_cfg") | |
| T_encoder = TypeVar("T_encoder") | |
| class EncoderVisualizer(ABC, Generic[T_cfg, T_encoder]): | |
| cfg: T_cfg | |
| encoder: T_encoder | |
| def __init__(self, cfg: T_cfg, encoder: T_encoder) -> None: | |
| self.cfg = cfg | |
| self.encoder = encoder | |
| def visualize( | |
| self, | |
| context: dict, | |
| global_step: int, | |
| ) -> dict[str, Float[Tensor, "3 _ _"]]: | |
| pass | |