Closed oyangavi closed 4 days ago
Takes forever at building wheels for pytorch3d. on Macbook Air M2 2022
the colab notebook on the top of this tutorial link. https://pytorch3d.org/tutorials/deform_source_mesh_to_target_mesh
The exact command(s) you ran:
import os import sys import torch import subprocess need_pytorch3d=False try: import pytorch3d except ModuleNotFoundError: need_pytorch3d=True if need_pytorch3d: 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}" ]) !pip install iopath if sys.platform.startswith("linux"): print("Trying to install wheel for PyTorch3D") !pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html pip_list = !pip freeze need_pytorch3d = not any(i.startswith("pytorch3d==") for i in pip_list) if need_pytorch3d: print(f"failed to find/install wheel for {version_str}") if need_pytorch3d: print("Installing PyTorch3D from source") !pip install ninja !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'
What you observed (including the full logs):
Requirement already satisfied: iopath in /usr/local/lib/python3.10/dist-packages (0.1.10) Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from iopath) (4.66.6) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from iopath) (4.12.2) Requirement already satisfied: portalocker in /usr/local/lib/python3.10/dist-packages (from iopath) (3.0.0) Trying to install wheel for PyTorch3D Looking in links: https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py310_cu121_pyt251/download.html ERROR: Could not find a version that satisfies the requirement pytorch3d (from versions: none) ERROR: No matching distribution found for pytorch3d failed to find/install wheel for py310_cu121_pyt251 Installing PyTorch3D from source Requirement already satisfied: ninja in /usr/local/lib/python3.10/dist-packages (1.11.1.2) Collecting git+https://github.com/facebookresearch/pytorch3d.git@stable Cloning https://github.com/facebookresearch/pytorch3d.git (to revision stable) to /tmp/pip-req-build-zpocg711 Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git /tmp/pip-req-build-zpocg711 Running command git checkout -q 75ebeeaea0908c5527e7b1e305fbc7681382db47 Resolved https://github.com/facebookresearch/pytorch3d.git to commit 75ebeeaea0908c5527e7b1e305fbc7681382db47 Preparing metadata (setup.py) ... done Requirement already satisfied: iopath in /usr/local/lib/python3.10/dist-packages (from pytorch3d==0.7.8) (0.1.10) Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from iopath->pytorch3d==0.7.8) (4.66.6) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from iopath->pytorch3d==0.7.8) (4.12.2) Requirement already satisfied: portalocker in /usr/local/lib/python3.10/dist-packages (from iopath->pytorch3d==0.7.8) (3.0.0) Building wheels for collected packages: pytorch3d
stuck at here
Same problem for me
I've now uploaded py310_cu121_pyt251/pytorch3d-0.7.8-cp310-cp310-linux_x86_64.whl (built from current main)
🐛 Bugs / Unexpected behaviors
Takes forever at building wheels for pytorch3d. on Macbook Air M2 2022
Instructions To Reproduce the Issue:
the colab notebook on the top of this tutorial link. https://pytorch3d.org/tutorials/deform_source_mesh_to_target_mesh
The exact command(s) you ran:
What you observed (including the full logs):
stuck at here