Download src/modules/utils/constants.py from stevengrove/JoyAI-Image-Edit-Space: direct link, hf CLI and curl.
- Browser
- Download file 120 Bytes
-
https://huggingface.co/spaces/stevengrove/JoyAI-Image-Edit-Space/resolve/main/src/modules/utils/constants.py
- Command line
-
hf download hf://spaces/stevengrove/JoyAI-Image-Edit-Space/src/modules/utils/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/stevengrove/JoyAI-Image-Edit-Space/resolve/main/src/modules/utils/constants.py
120 Bytes
| import torch | |
| PRECISION_TO_TYPE = { | |
| "fp32": torch.float32, | |
| "fp16": torch.float16, | |
| "bf16": torch.bfloat16, | |
| } | |