File size: 1,274 Bytes
0f20198
 
 
 
85a27e0
0f20198
85a27e0
0f20198
 
 
 
e7d94f5
e4da79f
0f20198
af3dd88
e7d94f5
 
 
0f20198
 
e4da79f
 
 
 
 
 
 
 
 
 
 
 
e7d94f5
0f20198
 
 
 
 
 
e7d94f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Youtu ReID Baseline

This model is provided by Tencent Youtu Lab [[Credits]](https://github.com/opencv/opencv/blob/394e640909d5d8edf9c1f578f8216d513373698c/samples/dnn/person_reid.py#L6-L11).

**Note**:
- Model source: https://github.com/ReID-Team/ReID_extra_testdata
- `person_reid_youtu_2021nov_int8bq.onnx` represents the block-quantized version in int8 precision and is generated using [block_quantize.py](../../tools/quantize/block_quantize.py) with `block_size=64`.

## Demo

Run the following command to try the demo:

### Python
```shell
python demo.py --query_dir /path/to/query --gallery_dir /path/to/gallery -v

# get help regarding various parameters
python demo.py --help
```

### C++
```shell
# 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](./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