Spaces:
Runtime error
Runtime error
Download ip_adapter/utils.py from multimodalart/InstantID-FaceID-6M: direct link, hf CLI and curl.
- Browser
- Download file 115 Bytes
-
https://huggingface.co/spaces/multimodalart/InstantID-FaceID-6M/resolve/f43f8b146494b9a0edad8ba6f397fea087c30e46/ip_adapter/utils.py
- Command line
-
hf download hf://spaces/multimodalart/InstantID-FaceID-6M@f43f8b146494b9a0edad8ba6f397fea087c30e46/ip_adapter/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/multimodalart/InstantID-FaceID-6M/resolve/f43f8b146494b9a0edad8ba6f397fea087c30e46/ip_adapter/utils.py
115 Bytes
| import torch.nn.functional as F | |
| def is_torch2_available(): | |
| return hasattr(F, "scaled_dot_product_attention") | |