Install the package in editable mode with demo extras
!pip install -e .[demo]
output:
Obtaining file:///content/SPIGA
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: matplotlib>=3.2.1 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (3.7.1)
Requirement already satisfied: numpy>=1.18.2 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.25.2)
Requirement already satisfied: opencv-python>=4.2.0.32 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (4.10.0.84)
Requirement already satisfied: Pillow>=7.0.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (10.4.0)
Requirement already satisfied: torch>=1.4.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (2.4.1+cu121)
Requirement already satisfied: torchvision>=0.5.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (0.19.1+cu121)
Requirement already satisfied: torchaudio in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (2.4.1+cu121)
Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.9.3)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.5.2)
Collecting retinaface-py>=0.0.2 (from spiga==0.0.6)
Downloading retinaface_py-0.0.2-py3-none-any.whl.metadata (6.1 kB)
Collecting sort-tracker-py>=1.0.2 (from spiga==0.0.6)
Downloading sort_tracker_py-1.0.2-py3-none-any.whl.metadata (5.3 kB)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (1.3.0)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (4.54.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (1.4.7)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (24.1)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (2.8.2)
Requirement already satisfied: filterpy>=1.4.5 in /usr/local/lib/python3.10/dist-packages (from sort-tracker-py>=1.0.2->spiga==0.0.6) (1.4.5)
Collecting lap>=0.4.0 (from sort-tracker-py>=1.0.2->spiga==0.0.6)
Downloading lap-0.4.0.tar.gz (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 55.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (4.12.2)
Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (1.13.3)
Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.4.1)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.1.4)
Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (2024.6.1)
Requirement already satisfied: joblib>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->spiga==0.0.6) (1.4.2)
Requirement already satisfied: threadpoolctl>=3.1.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->spiga==0.0.6) (3.5.0)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.7->matplotlib>=3.2.1->spiga==0.0.6) (1.16.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.4.0->spiga==0.0.6) (3.0.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.4.0->spiga==0.0.6) (1.3.0)
Downloading retinaface_py-0.0.2-py3-none-any.whl (37 kB)
Downloading sort_tracker_py-1.0.2-py3-none-any.whl (19 kB)
Building wheels for collected packages: spiga, lap
Building editable for spiga (pyproject.toml) ... done
Created wheel for spiga: filename=spiga-0.0.6-0.editable-py3-none-any.whl size=8158 sha256=604e83dbf0fa6b1b39e39ab2928cc249a8c598596cf5502287d0acfdd2d58b90
Stored in directory: /tmp/pip-ephem-wheel-cache-nubr3xta/wheels/51/78/17/4d636d7d4147e7d7a403fcd06d77681c57262817b7ae678952
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for lap (setup.py) ... error
ERROR: Failed building wheel for lap
Running setup.py clean for lap
Successfully built spiga
Failed to build lap
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lap)
i get this error while running this part:
Clone the SPIGA repository
!git clone https://github.com/andresprados/SPIGA.git %cd SPIGA
Install the package in editable mode with demo extras
!pip install -e .[demo] output: Obtaining file:///content/SPIGA Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: matplotlib>=3.2.1 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (3.7.1) Requirement already satisfied: numpy>=1.18.2 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.25.2) Requirement already satisfied: opencv-python>=4.2.0.32 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (4.10.0.84) Requirement already satisfied: Pillow>=7.0.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (10.4.0) Requirement already satisfied: torch>=1.4.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (2.4.1+cu121) Requirement already satisfied: torchvision>=0.5.0 in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (0.19.1+cu121) Requirement already satisfied: torchaudio in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (2.4.1+cu121) Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.9.3) Requirement already satisfied: scikit-learn in /usr/local/lib/python3.10/dist-packages (from spiga==0.0.6) (1.5.2) Collecting retinaface-py>=0.0.2 (from spiga==0.0.6) Downloading retinaface_py-0.0.2-py3-none-any.whl.metadata (6.1 kB) Collecting sort-tracker-py>=1.0.2 (from spiga==0.0.6) Downloading sort_tracker_py-1.0.2-py3-none-any.whl.metadata (5.3 kB) Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (1.3.0) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (4.54.1) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (1.4.7) Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (24.1) Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (3.2.0) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib>=3.2.1->spiga==0.0.6) (2.8.2) Requirement already satisfied: filterpy>=1.4.5 in /usr/local/lib/python3.10/dist-packages (from sort-tracker-py>=1.0.2->spiga==0.0.6) (1.4.5) Collecting lap>=0.4.0 (from sort-tracker-py>=1.0.2->spiga==0.0.6) Downloading lap-0.4.0.tar.gz (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 55.1 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.16.1) Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (4.12.2) Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (1.13.3) Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.4.1) Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (3.1.4) Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.4.0->spiga==0.0.6) (2024.6.1) Requirement already satisfied: joblib>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->spiga==0.0.6) (1.4.2) Requirement already satisfied: threadpoolctl>=3.1.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn->spiga==0.0.6) (3.5.0) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.7->matplotlib>=3.2.1->spiga==0.0.6) (1.16.0) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.4.0->spiga==0.0.6) (3.0.1) Requirement already satisfied: mpmath<1.4,>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.4.0->spiga==0.0.6) (1.3.0) Downloading retinaface_py-0.0.2-py3-none-any.whl (37 kB) Downloading sort_tracker_py-1.0.2-py3-none-any.whl (19 kB) Building wheels for collected packages: spiga, lap Building editable for spiga (pyproject.toml) ... done Created wheel for spiga: filename=spiga-0.0.6-0.editable-py3-none-any.whl size=8158 sha256=604e83dbf0fa6b1b39e39ab2928cc249a8c598596cf5502287d0acfdd2d58b90 Stored in directory: /tmp/pip-ephem-wheel-cache-nubr3xta/wheels/51/78/17/4d636d7d4147e7d7a403fcd06d77681c57262817b7ae678952 error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for lap (setup.py) ... error ERROR: Failed building wheel for lap Running setup.py clean for lap Successfully built spiga Failed to build lap ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lap)