opencv/person_reid_youtureid
By opencv · ↓ 0 · ♥ 3 · Updated 2025-06-20
What's in this repo
This page lists the files in opencv/person_reid_youtureid, including person_reid_youtu_2021nov.onnx, person_reid_youtu_2021nov_int8.onnx, person_reid_youtu_2021nov_int8bq.onnx.
- 3 ONNX models (.onnx files)
- 11 files, including 3 .onnx, 2 .py, 1 .txt, 1 .md, 1 .cpp
- Last updated 2025-06-20
ONNX files
| File | Size | Download |
|---|---|---|
| person_reid_youtu_2021nov.onnx | — | Download |
| person_reid_youtu_2021nov_int8.onnx | — | Download |
| person_reid_youtu_2021nov_int8bq.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Youtu ReID Baseline
This model is provided by Tencent Youtu Lab [Credits].
Note:
- Model source: https://github.com/ReID-Team/ReID_extra_testdata
person_reid_youtu_2021nov_int8bq.onnxrepresents the block-quantized version in int8 precision and is generated using block_quantize.py withblock_size=64.
Demo
Run the following command to try the demo:
Python
python demo.py --query_dir /path/to/query --gallery_dir /path/to/gallery -v
# get help regarding various parameters
python demo.py --help
C++
# A typical and default installation path of OpenCV is /usr/local
cmake -B build -D OPENCV_INSTALLATION_PATH=/path/to/opencv/installation .
cmake --build build
./build/demo --query_dir=/path/to/query --gallery_dir=/path/to/gallery -v
# get help regarding various parameters
./build/demo --help
License
All files in this directory are licensed under Apache 2.0 License.
Reference:
- OpenCV DNN Sample: https://github.com/opencv/opencv/blob/4.x/samples/dnn/person_reid.py
- Model source: https://github.com/ReID-Team/ReID_extra_testdata
Files (11)
Related models
More from opencv
More models
No task type declared.