Spaces:
Runtime error
Runtime error
Download scripts/install_pytorch3d.py from eshwar06/personaxgemini: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/eshwar06/personaxgemini/resolve/main/scripts/install_pytorch3d.py
- Command line
-
hf download hf://spaces/eshwar06/personaxgemini/scripts/install_pytorch3d.py
-
curl -L -o install_pytorch3d.py https://huggingface.co/spaces/eshwar06/personaxgemini/resolve/main/scripts/install_pytorch3d.py
486 Bytes
| import sys | |
| import torch | |
| import subprocess | |
| pyt_version_str=torch.__version__.split("+")[0].replace(".", "") | |
| version_str="".join([ | |
| f"py3{sys.version_info.minor}_cu", | |
| torch.version.cuda.replace(".",""), | |
| f"_pyt{pyt_version_str}" | |
| ]) | |
| subprocess.run(["pip", "install", "fvcore", "iopath"]) | |
| subprocess.run(["pip", "install", f"--no-index", f"--no-cache-dir", f"pytorch3d", f"-f", f"https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html"]) |