Download src/deoldify/device_id.py from Ashrafb/Bwc2: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/spaces/Ashrafb/Bwc2/resolve/main/src/deoldify/device_id.py
- Command line
-
hf download hf://spaces/Ashrafb/Bwc2/src/deoldify/device_id.py
-
curl -L -o device_id.py https://huggingface.co/spaces/Ashrafb/Bwc2/resolve/main/src/deoldify/device_id.py
176 Bytes
| from enum import IntEnum | |
| class DeviceId(IntEnum): | |
| GPU0 = 0, | |
| GPU1 = 1, | |
| GPU2 = 2, | |
| GPU3 = 3, | |
| GPU4 = 4, | |
| GPU5 = 5, | |
| GPU6 = 6, | |
| GPU7 = 7, | |
| CPU = 99 | |