Download src/pozify/steps/pose_backends/base.py from build-small-hackathon/Pozify: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/Pozify/resolve/main/src/pozify/steps/pose_backends/base.py
- Command line
-
hf download hf://spaces/build-small-hackathon/Pozify/src/pozify/steps/pose_backends/base.py
-
curl -L -o base.py https://huggingface.co/spaces/build-small-hackathon/Pozify/resolve/main/src/pozify/steps/pose_backends/base.py
614 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import Any, Protocol | |
| class PoseDetection: | |
| landmarks: dict[str, dict[str, float]] | |
| world_landmarks: dict[str, dict[str, float]] | |
| source: str | |
| class PoseBackendUnavailableError(RuntimeError): | |
| pass | |
| class PoseBackend(Protocol): | |
| source: str | |
| def __enter__(self) -> "PoseBackend": | |
| return self | |
| def __exit__(self, *args: object) -> None: | |
| return None | |
| def detect(self, rgb_frame: Any | None, *, frame_index: int) -> PoseDetection: | |
| raise NotImplementedError | |