Download SKING_DDJ_v104/runtime/dense_uv_parser/runtime.py from EntropyDrop/Sking: direct link, hf CLI and curl.
- Browser
- Download file 184 Bytes
-
https://huggingface.co/EntropyDrop/Sking/resolve/main/SKING_DDJ_v104/runtime/dense_uv_parser/runtime.py
- Command line
-
hf download hf://EntropyDrop/Sking/SKING_DDJ_v104/runtime/dense_uv_parser/runtime.py
-
curl -L -o runtime.py https://huggingface.co/EntropyDrop/Sking/resolve/main/SKING_DDJ_v104/runtime/dense_uv_parser/runtime.py
184 Bytes
| import torch | |
| def get_device(device_arg): | |
| if device_arg == "auto": | |
| return torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| return torch.device(device_arg) | |