Skip to main content

Customized Torchreid for pyppbox: Deep learning person re-identification.

Project description

Test Build Python [3.8-3.11] Publish to PyPI

Customized Torchreid for pyppbox

Torchreid is a library for deep-learning person re-identification using PyTorch.

pyppbox-torchreid is a customized Torchreid for pyppbox and:

  • Ensures that Cython natively works on all OS platform (Windows/Linux/macOS),
  • Enables freedom of passing local model/weight files from anywhere,
  • Disables some models which are not used in pyppbox.

All source credit and more info -> Original KaiyangZhou's repo.

Install

Use Wheels from releases or directly install from PyPI:

pip install pyppbox-torchreid

Or install from GitHub directly:

pip install git+https://github.com/rathaumons/torchreid-for-pyppbox.git

To be able to run, you must install OpenCV and PyTorch; for example, with GPU support:

pip install opencv-contrib-python
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Note: PyTorch doesn't support GPU on macOS.

Build from source

(Optional, auto install) Building Wheels or source distribution only requires these modules:

pip install "setuptools>=67.2.0"
pip install "Cython>=0.29.32"
pip install "numpy>=1.23.5"

Recommend using build for building both .whl and .tar.gz:

git clone https://github.com/rathaumons/torchreid-for-pyppbox/
cd torchreid-for-pyppbox
python -m pip install --upgrade pip
pip install wheel build
python -m build --sdist
python -m build --wheel
cd dist

After you install pyppbox-torchred, OpenCV and PyTorch, you can check if Cython rank_cy works:

cd pyppbox_torchreid/metrics/rank_cylib
python test_cython.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyppbox-torchreid-1.4.0.2.tar.gz (92.3 kB view hashes)

Uploaded Source

Built Distributions

pyppbox_torchreid-1.4.0.2-cp311-cp311-win_amd64.whl (239.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyppbox_torchreid-1.4.0.2-cp311-cp311-musllinux_1_1_x86_64.whl (813.5 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyppbox_torchreid-1.4.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (813.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyppbox_torchreid-1.4.0.2-cp311-cp311-macosx_10_9_x86_64.whl (266.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyppbox_torchreid-1.4.0.2-cp311-cp311-macosx_10_9_universal2.whl (376.8 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

pyppbox_torchreid-1.4.0.2-cp310-cp310-win_amd64.whl (238.7 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyppbox_torchreid-1.4.0.2-cp310-cp310-musllinux_1_1_x86_64.whl (758.0 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyppbox_torchreid-1.4.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (754.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyppbox_torchreid-1.4.0.2-cp310-cp310-macosx_10_9_x86_64.whl (266.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyppbox_torchreid-1.4.0.2-cp310-cp310-macosx_10_9_universal2.whl (375.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

pyppbox_torchreid-1.4.0.2-cp39-cp39-win_amd64.whl (238.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyppbox_torchreid-1.4.0.2-cp39-cp39-musllinux_1_1_x86_64.whl (754.1 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyppbox_torchreid-1.4.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (752.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyppbox_torchreid-1.4.0.2-cp39-cp39-macosx_10_9_x86_64.whl (266.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyppbox_torchreid-1.4.0.2-cp39-cp39-macosx_10_9_universal2.whl (376.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

pyppbox_torchreid-1.4.0.2-cp38-cp38-win_amd64.whl (239.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyppbox_torchreid-1.4.0.2-cp38-cp38-musllinux_1_1_x86_64.whl (806.3 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pyppbox_torchreid-1.4.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (768.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyppbox_torchreid-1.4.0.2-cp38-cp38-macosx_10_9_x86_64.whl (264.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyppbox_torchreid-1.4.0.2-cp38-cp38-macosx_10_9_universal2.whl (373.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page