Spaces:
Running on Zero
Running on Zero
Download training/datatypes.py from Charlie839242/StreamTAP3D: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/Charlie839242/StreamTAP3D/resolve/main/training/datatypes.py
- Command line
-
hf download hf://spaces/Charlie839242/StreamTAP3D/training/datatypes.py
-
curl -L -o datatypes.py https://huggingface.co/spaces/Charlie839242/StreamTAP3D/resolve/main/training/datatypes.py
263 Bytes
| import torch | |
| from dataclasses import dataclass | |
| class Prediction: | |
| coords: torch.Tensor # (B, T, N, 3) | |
| visibs: torch.Tensor # (B, T, N) | |
| def __post_init__(self): | |
| assert not self.coords.requires_grad and not self.visibs.requires_grad | |