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