Download utils/types.py from neural-ti/NeTI: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/neural-ti/NeTI/resolve/main/utils/types.py
- Command line
-
hf download hf://spaces/neural-ti/NeTI/utils/types.py
-
curl -L -o types.py https://huggingface.co/spaces/neural-ti/NeTI/resolve/main/utils/types.py
342 Bytes
| import enum | |
| from dataclasses import dataclass | |
| from typing import Optional | |
| import torch | |
| class NeTIBatch: | |
| input_ids: torch.Tensor | |
| placeholder_token_id: int | |
| timesteps: torch.Tensor | |
| unet_layers: torch.Tensor | |
| truncation_idx: Optional[int] = None | |
| class PESigmas: | |
| sigma_t: float | |
| sigma_l: float | |