发布 PPLCNet ReID FP32 固定转换与来源说明
Browse files- LICENSE +201 -0
- NOTICE +16 -0
- README.en.md +31 -0
- README.md +45 -0
- configuration.json +1 -0
- pplcnet-reid/0.1.0/LICENSE +201 -0
- pplcnet-reid/0.1.0/NOTICE +16 -0
- pplcnet-reid/0.1.0/README.en.md +31 -0
- pplcnet-reid/0.1.0/README.md +45 -0
- pplcnet-reid/0.1.0/model.json +21 -0
- pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PPLCNet ReID FP32 ONNX 转换
|
| 2 |
+
来源:PaddlePaddle / PaddleDetection、PaddleClas
|
| 3 |
+
原模型结构声明:Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
|
| 4 |
+
许可证:Apache License, Version 2.0(附完整 LICENSE)
|
| 5 |
+
|
| 6 |
+
上游固定提交 b25522a0f4bde8c80603f3ba5e3472059972e3b5。
|
| 7 |
+
官方原权重 deepsort_pplcnet.pdparams:
|
| 8 |
+
https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams
|
| 9 |
+
SHA-256 abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758
|
| 10 |
+
|
| 11 |
+
2026年由chenmohan转换为固定batch1 FP32 ONNX/opset17;移除注册依赖,
|
| 12 |
+
不导出不属于Embedding forward的训练分类头,未重新训练或量化。
|
| 13 |
+
ONNX SHA-256 24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4。
|
| 14 |
+
本项目正常朝向RGB预处理与上游转置BGR部署不同,未嵌入ONNX。
|
| 15 |
+
未包含上游tracker、Kalman、matching代码、原始训练或评测图像。
|
| 16 |
+
分发依据和训练披露范围见README.md;本转换不表示上游背书。
|
README.en.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PPLCNet ReID FP32 · Web SDK adaptation
|
| 2 |
+
|
| 3 |
+
[中文](README.md)
|
| 4 |
+
|
| 5 |
+
This is an FP32 ONNX conversion of PaddleDetection's officially linked human `deepsort_pplcnet.pdparams`. It extracts appearance features from supplied human detection boxes; it neither detects objects, assigns track IDs, nor identifies a person's real identity. Adapted by chenmohan for [web-sdk-PP-Tracking](https://github.com/chenmohan123/web-sdk-PP-Tracking); this is not an official Paddle release.
|
| 6 |
+
|
| 7 |
+
## Asset identity
|
| 8 |
+
|
| 9 |
+
File: `pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx`; FP32, opset17; 33,704,835 bytes; SHA-256 `24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4`.
|
| 10 |
+
|
| 11 |
+
Input: `crops`, float32 `[1,3,192,64]`. Output: `save_infer_model/scale_0.tmp_0`, float32 `[1,512]`. Architecture: PPLCNetEmbedding scale2.5, 1280-dimensional neck input, 512-dimensional output. Its 146 inference state tensors contain 8,419,792 elements including BN state, not a verified count of trainable parameters. The checkpoint's additional `head.weight [512,1502]` is outside the official embedding forward and is not exported.
|
| 12 |
+
|
| 13 |
+
## Provenance, conversion and license basis
|
| 14 |
+
|
| 15 |
+
- Fixed [PaddleDetection revision b25522a0f4bde8c80603f3ba5e3472059972e3b5](https://github.com/PaddlePaddle/PaddleDetection/tree/b25522a0f4bde8c80603f3ba5e3472059972e3b5). The [ReID README](https://github.com/PaddlePaddle/PaddleDetection/blob/b25522a0f4bde8c80603f3ba5e3472059972e3b5/configs/mot/deepsort/reid/README.md) explicitly lists the human PPLCNet-2.5x checkpoint.
|
| 16 |
+
- [Official checkpoint](https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams): 36,769,814 bytes; SHA-256 `abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758`.
|
| 17 |
+
- Paddle2.6.2 / Paddle2ONNX1.3.1, fixed batch1. Registration dependencies were removed to export the original embedding inference graph; no retraining or quantization. Cropping, normalization and output L2 are outside ONNX.
|
| 18 |
+
- Distribution adopts the official repository's overall **Apache-2.0** license as its basis for this officially linked checkpoint and conversion, retaining [LICENSE](LICENSE), [NOTICE](NOTICE), attribution and modification disclosure. The reviewed material does not include a separate checkpoint license/model card; no additional checkpoint-specific grant or downstream-use warranty is claimed.
|
| 19 |
+
- Official documentation credits PaddleClas and discloses training on Market1501 (751 training identities), with the detailed training process still to be published. Head dimensions do not establish additional datasets. No training images/data are distributed; the model's license declaration does not replace dataset terms.
|
| 20 |
+
|
| 21 |
+
## Web preprocessing and output
|
| 22 |
+
|
| 23 |
+
`rgba8-white-upright-rgb-halfpixel-f64-imagenet-f32-v1`: the caller supplies upright sRGB, unpremultiplied RGBA8 and fully in-bounds human xywh boxes. Floor left/top, ceil right/bottom; composite alpha onto white; upright RGB, half-pixel bilinear resize to64×192 using float64 intermediate arithmetic; ImageNet mean `[0.485,0.456,0.406]` and std `[0.229,0.224,0.225]`; final float32 NCHW.
|
| 24 |
+
|
| 25 |
+
Normalize each output using a float64 L2 norm and store float32 (`l2-f32-v1`), producing a512-dimensional unit vector. Bind the complete model SHA, preprocessing ID and L2 version to the feature space. This Web adaptation differs from the pinned upstream deployment's transposed BGR path: vectors are not interchangeable, and undocumented training preprocessing is not claimed as reproduced.
|
| 26 |
+
|
| 27 |
+
## Validation and limits
|
| 28 |
+
|
| 29 |
+
2026-09-21, Windows11 / i5-10400F / RTX5060Ti / Chromium153 / ORT Web1.27: WASM and WebGPU each pass34 fixtures against Paddle; maximum normalized absolute errors approximately3.502e-7/4.396e-7. WebGPU CPU fallback is disabled. Independent references and reports are in SDK `reports/2026-09-21-reid-module/`. These results do not establish all-browser or phone compatibility.
|
| 30 |
+
|
| 31 |
+
Small closed-set retrieval with GT boxes is not complete tracking evaluation. Similar clothing, occlusion, low resolution, lighting and camera changes can confuse appearance matching. Distribution adds no claim of improved IDF1/MOTA or complete video FPS. This human model is not a general vehicle/object ReID model. The host decodes files; transparent PNG colors may change through Canvas, so original-file pixels and decoded RGBA are not guaranteed byte-identical.
|
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: onnx
|
| 4 |
+
tags: [onnx, re-identification, tracking, pplcnet, webgpu]
|
| 5 |
+
language: [zh, en]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# PPLCNet ReID FP32 · Web SDK 适配
|
| 9 |
+
|
| 10 |
+
[English](README.en.md)
|
| 11 |
+
|
| 12 |
+
这是 PaddleDetection 官方发布的人体 `deepsort_pplcnet.pdparams` 的 FP32 ONNX 转换,用于已有检测框中的人体外观特征提取。它不是检测器,不直接分配轨迹 ID,也不识别人的真实身份。对应 SDK 为 [web-sdk-PP-Tracking](https://github.com/chenmohan123/web-sdk-PP-Tracking),转换者 chenmohan;非 Paddle 官方发行。
|
| 13 |
+
|
| 14 |
+
## 固定资产
|
| 15 |
+
|
| 16 |
+
| 字段 | 值 |
|
| 17 |
+
| --- | --- |
|
| 18 |
+
| 文件 | `pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx` |
|
| 19 |
+
| 格式 | FP32 ONNX,opset 17 |
|
| 20 |
+
| 大小 | 33,704,835 bytes |
|
| 21 |
+
| SHA-256 | `24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4` |
|
| 22 |
+
| 输入 | `crops`,float32 `[1,3,192,64]` |
|
| 23 |
+
| 输出 | `save_infer_model/scale_0.tmp_0`,float32 `[1,512]` |
|
| 24 |
+
|
| 25 |
+
网络为 PPLCNetEmbedding(scale 2.5,1280 维 neck 输入、512 维输出)。推理状态共 146 个张量、8,419,792 个元素,包含 BN 状态;未将其冒称为全部可训练参数。checkpoint 附加的 `head.weight [512,1502]` 不在官方 Embedding forward 内,转换不使用该训练头。
|
| 26 |
+
|
| 27 |
+
## 来源、转换与许可依据
|
| 28 |
+
|
| 29 |
+
- 官方仓库固定提交:[b25522a0f4bde8c80603f3ba5e3472059972e3b5](https://github.com/PaddlePaddle/PaddleDetection/tree/b25522a0f4bde8c80603f3ba5e3472059972e3b5)。[ReID README](https://github.com/PaddlePaddle/PaddleDetection/blob/b25522a0f4bde8c80603f3ba5e3472059972e3b5/configs/mot/deepsort/reid/README.md)明确列出 PPLCNet-2.5x 人体模型及权重。
|
| 30 |
+
- 原权重:[官方下载](https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams),36,769,814 bytes,SHA-256 `abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758`。
|
| 31 |
+
- 转换:Paddle 2.6.2 / Paddle2ONNX 1.3.1,固定batch1;仅去除注册依赖、导出原Embedding推理图,没有重新训练或量化。裁剪、标准化及 L2 不在 ONNX 内。
|
| 32 |
+
- 分发采用上述官方仓库整体 **Apache-2.0** 授权作为官方链接权重及转换产物的依据,保留原[LICENSE](LICENSE)与[NOTICE](NOTICE),注明来源和修改。所读取材料没有权重专属许可/独立模型卡,未声称取得额外的checkpoint专属授权或下游用途保证。
|
| 33 |
+
- 官方文档披露由 PaddleClas 提供、Market1501(751训练身份)训练,具体训练过程待公布。训练头维度不能用于推断额外训练集合。本仓库不分发训练图像或数据,模型的Apache许可声明不替代数据集自身条件。
|
| 34 |
+
|
| 35 |
+
## Web SDK 预处理与输出
|
| 36 |
+
|
| 37 |
+
预处理版本 `rgba8-white-upright-rgb-halfpixel-f64-imagenet-f32-v1`:调用者提供方向已处理的 sRGB、非预乘 RGBA8 与完整图内 xywh 人体框;左/上 floor、右/下 ceil;透明像素白底合成;正常朝向 RGB、half-pixel 双线性缩放到 64×192,float64 中间计算;ImageNet mean `[0.485,0.456,0.406]` / std `[0.229,0.224,0.225]`,最终 float32 NCHW。
|
| 38 |
+
|
| 39 |
+
输出按 float64 范数 L2 归一化并写回 float32(`l2-f32-v1`),得到512维单位向量。特征空间须同时绑定完整模型 SHA、预处理及 L2 版本。该 Web 适配与固定上游部署的转置 BGR 路径不同,不能与其向量混用,也不宣称复现未公开的训练预处理。
|
| 40 |
+
|
| 41 |
+
## 验证与限制
|
| 42 |
+
|
| 43 |
+
2026-09-21,本机 Windows 11 / i5-10400F / RTX5060Ti / Chromium153 / ORT Web1.27:WASM 与 WebGPU 各34组向量对 Paddle 参考通过;归一化最大绝对差约3.502e-7/4.396e-7。WebGPU禁CPU回退。源码与独立参考报告在SDK仓库的 `reports/2026-09-21-reid-module/`;不代表所有浏览器或手机兼容。
|
| 44 |
+
|
| 45 |
+
小样本、GT人体框的闭集检索不是完整跟踪精度;相似衣着、遮挡、低分辨率、光照与相机变化可能导致混淆。没有以本次分发宣称IDF1/MOTA提升或完整视频FPS。模型面向人体,不应把512维接口视为车辆或所有物体的通用ReID。文件解码由宿主处理,透明PNG经Canvas可能发生颜色变化,原始文件与解码RGBA并非逐字节等价。
|
configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{}
|
pplcnet-reid/0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
pplcnet-reid/0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PPLCNet ReID FP32 ONNX 转换
|
| 2 |
+
来源:PaddlePaddle / PaddleDetection、PaddleClas
|
| 3 |
+
原模型结构声明:Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
|
| 4 |
+
许可证:Apache License, Version 2.0(附完整 LICENSE)
|
| 5 |
+
|
| 6 |
+
上游固定提交 b25522a0f4bde8c80603f3ba5e3472059972e3b5。
|
| 7 |
+
官方原权重 deepsort_pplcnet.pdparams:
|
| 8 |
+
https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams
|
| 9 |
+
SHA-256 abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758
|
| 10 |
+
|
| 11 |
+
2026年由chenmohan转换为固定batch1 FP32 ONNX/opset17;移除注册依赖,
|
| 12 |
+
不导出不属于Embedding forward的训练分类头,未重新训练或量化。
|
| 13 |
+
ONNX SHA-256 24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4。
|
| 14 |
+
本项目正常朝向RGB预处理与上游转置BGR部署不同,未嵌入ONNX。
|
| 15 |
+
未包含上游tracker、Kalman、matching代码、原始训练或评测图像。
|
| 16 |
+
分发依据和训练披露范围见README.md;本转换不表示上游背书。
|
pplcnet-reid/0.1.0/README.en.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PPLCNet ReID FP32 · Web SDK adaptation
|
| 2 |
+
|
| 3 |
+
[中文](README.md)
|
| 4 |
+
|
| 5 |
+
This is an FP32 ONNX conversion of PaddleDetection's officially linked human `deepsort_pplcnet.pdparams`. It extracts appearance features from supplied human detection boxes; it neither detects objects, assigns track IDs, nor identifies a person's real identity. Adapted by chenmohan for [web-sdk-PP-Tracking](https://github.com/chenmohan123/web-sdk-PP-Tracking); this is not an official Paddle release.
|
| 6 |
+
|
| 7 |
+
## Asset identity
|
| 8 |
+
|
| 9 |
+
File: `pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx`; FP32, opset17; 33,704,835 bytes; SHA-256 `24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4`.
|
| 10 |
+
|
| 11 |
+
Input: `crops`, float32 `[1,3,192,64]`. Output: `save_infer_model/scale_0.tmp_0`, float32 `[1,512]`. Architecture: PPLCNetEmbedding scale2.5, 1280-dimensional neck input, 512-dimensional output. Its 146 inference state tensors contain 8,419,792 elements including BN state, not a verified count of trainable parameters. The checkpoint's additional `head.weight [512,1502]` is outside the official embedding forward and is not exported.
|
| 12 |
+
|
| 13 |
+
## Provenance, conversion and license basis
|
| 14 |
+
|
| 15 |
+
- Fixed [PaddleDetection revision b25522a0f4bde8c80603f3ba5e3472059972e3b5](https://github.com/PaddlePaddle/PaddleDetection/tree/b25522a0f4bde8c80603f3ba5e3472059972e3b5). The [ReID README](https://github.com/PaddlePaddle/PaddleDetection/blob/b25522a0f4bde8c80603f3ba5e3472059972e3b5/configs/mot/deepsort/reid/README.md) explicitly lists the human PPLCNet-2.5x checkpoint.
|
| 16 |
+
- [Official checkpoint](https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams): 36,769,814 bytes; SHA-256 `abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758`.
|
| 17 |
+
- Paddle2.6.2 / Paddle2ONNX1.3.1, fixed batch1. Registration dependencies were removed to export the original embedding inference graph; no retraining or quantization. Cropping, normalization and output L2 are outside ONNX.
|
| 18 |
+
- Distribution adopts the official repository's overall **Apache-2.0** license as its basis for this officially linked checkpoint and conversion, retaining [LICENSE](LICENSE), [NOTICE](NOTICE), attribution and modification disclosure. The reviewed material does not include a separate checkpoint license/model card; no additional checkpoint-specific grant or downstream-use warranty is claimed.
|
| 19 |
+
- Official documentation credits PaddleClas and discloses training on Market1501 (751 training identities), with the detailed training process still to be published. Head dimensions do not establish additional datasets. No training images/data are distributed; the model's license declaration does not replace dataset terms.
|
| 20 |
+
|
| 21 |
+
## Web preprocessing and output
|
| 22 |
+
|
| 23 |
+
`rgba8-white-upright-rgb-halfpixel-f64-imagenet-f32-v1`: the caller supplies upright sRGB, unpremultiplied RGBA8 and fully in-bounds human xywh boxes. Floor left/top, ceil right/bottom; composite alpha onto white; upright RGB, half-pixel bilinear resize to64×192 using float64 intermediate arithmetic; ImageNet mean `[0.485,0.456,0.406]` and std `[0.229,0.224,0.225]`; final float32 NCHW.
|
| 24 |
+
|
| 25 |
+
Normalize each output using a float64 L2 norm and store float32 (`l2-f32-v1`), producing a512-dimensional unit vector. Bind the complete model SHA, preprocessing ID and L2 version to the feature space. This Web adaptation differs from the pinned upstream deployment's transposed BGR path: vectors are not interchangeable, and undocumented training preprocessing is not claimed as reproduced.
|
| 26 |
+
|
| 27 |
+
## Validation and limits
|
| 28 |
+
|
| 29 |
+
2026-09-21, Windows11 / i5-10400F / RTX5060Ti / Chromium153 / ORT Web1.27: WASM and WebGPU each pass34 fixtures against Paddle; maximum normalized absolute errors approximately3.502e-7/4.396e-7. WebGPU CPU fallback is disabled. Independent references and reports are in SDK `reports/2026-09-21-reid-module/`. These results do not establish all-browser or phone compatibility.
|
| 30 |
+
|
| 31 |
+
Small closed-set retrieval with GT boxes is not complete tracking evaluation. Similar clothing, occlusion, low resolution, lighting and camera changes can confuse appearance matching. Distribution adds no claim of improved IDF1/MOTA or complete video FPS. This human model is not a general vehicle/object ReID model. The host decodes files; transparent PNG colors may change through Canvas, so original-file pixels and decoded RGBA are not guaranteed byte-identical.
|
pplcnet-reid/0.1.0/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: onnx
|
| 4 |
+
tags: [onnx, re-identification, tracking, pplcnet, webgpu]
|
| 5 |
+
language: [zh, en]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# PPLCNet ReID FP32 · Web SDK 适配
|
| 9 |
+
|
| 10 |
+
[English](README.en.md)
|
| 11 |
+
|
| 12 |
+
这是 PaddleDetection 官方发布的人体 `deepsort_pplcnet.pdparams` 的 FP32 ONNX 转换,用于已有检测框中的人体外观特征提取。它不是检测器,不直接分配轨迹 ID,也不识别人的真实身份。对应 SDK 为 [web-sdk-PP-Tracking](https://github.com/chenmohan123/web-sdk-PP-Tracking),转换者 chenmohan;非 Paddle 官方发行。
|
| 13 |
+
|
| 14 |
+
## 固定资产
|
| 15 |
+
|
| 16 |
+
| 字段 | 值 |
|
| 17 |
+
| --- | --- |
|
| 18 |
+
| 文件 | `pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx` |
|
| 19 |
+
| 格式 | FP32 ONNX,opset 17 |
|
| 20 |
+
| 大小 | 33,704,835 bytes |
|
| 21 |
+
| SHA-256 | `24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4` |
|
| 22 |
+
| 输入 | `crops`,float32 `[1,3,192,64]` |
|
| 23 |
+
| 输出 | `save_infer_model/scale_0.tmp_0`,float32 `[1,512]` |
|
| 24 |
+
|
| 25 |
+
网络为 PPLCNetEmbedding(scale 2.5,1280 维 neck 输入、512 维输出)。推理状态共 146 个张量、8,419,792 个元素,包含 BN 状态;未将其冒称为全部可训练参数。checkpoint 附加的 `head.weight [512,1502]` 不在官方 Embedding forward 内,转换不使用该训练头。
|
| 26 |
+
|
| 27 |
+
## 来源、转换与许可依据
|
| 28 |
+
|
| 29 |
+
- 官方仓库固定提交:[b25522a0f4bde8c80603f3ba5e3472059972e3b5](https://github.com/PaddlePaddle/PaddleDetection/tree/b25522a0f4bde8c80603f3ba5e3472059972e3b5)。[ReID README](https://github.com/PaddlePaddle/PaddleDetection/blob/b25522a0f4bde8c80603f3ba5e3472059972e3b5/configs/mot/deepsort/reid/README.md)明确列出 PPLCNet-2.5x 人体模型及权重。
|
| 30 |
+
- 原权重:[官方下载](https://paddledet.bj.bcebos.com/models/mot/deepsort/deepsort_pplcnet.pdparams),36,769,814 bytes,SHA-256 `abce7d12af14b5b5c10c287ba01517470db3247ee06e3beeaa5ffc1c76628758`。
|
| 31 |
+
- 转换:Paddle 2.6.2 / Paddle2ONNX 1.3.1,固定batch1;仅去除注册依赖、导出原Embedding推理图,没有重新训练或量化。裁剪、标准化及 L2 不在 ONNX 内。
|
| 32 |
+
- 分发采用上述官方仓库整体 **Apache-2.0** 授权作为官方链接权重及转换产物的依据,保留原[LICENSE](LICENSE)与[NOTICE](NOTICE),注明来源和修改。所读取材料没有权重专属许可/独立模型卡,未声称取得额外的checkpoint专属授权或下游用途保证。
|
| 33 |
+
- 官方文档披露由 PaddleClas 提供、Market1501(751训练身份)训练,具体训练过程待公布。训练头维度不能用于推断额外训练集合。本仓库不分发训练图像或数据,模型的Apache许可声明不替代数据集自身条件。
|
| 34 |
+
|
| 35 |
+
## Web SDK 预处理与输出
|
| 36 |
+
|
| 37 |
+
预处理版本 `rgba8-white-upright-rgb-halfpixel-f64-imagenet-f32-v1`:调用者提供方向已处理的 sRGB、非预乘 RGBA8 与完整图内 xywh 人体框;左/上 floor、右/下 ceil;透明像素白底合成;正常朝向 RGB、half-pixel 双线性缩放到 64×192,float64 中间计算;ImageNet mean `[0.485,0.456,0.406]` / std `[0.229,0.224,0.225]`,最终 float32 NCHW。
|
| 38 |
+
|
| 39 |
+
输出按 float64 范数 L2 归一化并写回 float32(`l2-f32-v1`),得到512维单位向量。特征空间须同时绑定完整模型 SHA、预处理及 L2 版本。该 Web 适配与固定上游部署的转置 BGR 路径不同,不能与其向量混用,也不宣称复现未公开的训练预处理。
|
| 40 |
+
|
| 41 |
+
## 验证与限制
|
| 42 |
+
|
| 43 |
+
2026-09-21,本机 Windows 11 / i5-10400F / RTX5060Ti / Chromium153 / ORT Web1.27:WASM 与 WebGPU 各34组向量对 Paddle 参考通过;归一化最大绝对差约3.502e-7/4.396e-7。WebGPU禁CPU回退。源码与独立参考报告在SDK仓库的 `reports/2026-09-21-reid-module/`;不代表所有浏览器或手机兼容。
|
| 44 |
+
|
| 45 |
+
小样本、GT人体框的闭集检索不是完整跟踪精度;相似衣着、遮挡、低分辨率、光照与相机变化可能导致混淆。没有以本次分发宣称IDF1/MOTA提升或完整视频FPS。模型面向人体,不应把512维接口视为车辆或所有物体的通用ReID。文件解码由宿主处理,透明PNG经Canvas可能发生颜色变化,原始文件与解码RGBA并非逐字节等价。
|
pplcnet-reid/0.1.0/model.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "pplcnet-reid-fp32",
|
| 3 |
+
"version": "0.1.0",
|
| 4 |
+
"format": "onnx",
|
| 5 |
+
"precision": "fp32",
|
| 6 |
+
"opset": 17,
|
| 7 |
+
"path": "pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx",
|
| 8 |
+
"bytes": 33704835,
|
| 9 |
+
"sha256": "24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4",
|
| 10 |
+
"parameterCount": null,
|
| 11 |
+
"inferenceStateElementsIncludingBatchNorm": 8419792,
|
| 12 |
+
"license": "Apache-2.0",
|
| 13 |
+
"licenseBasis": "采用官方仓库整体授权;依据与已知披露范围见README.md",
|
| 14 |
+
"upstreamRevision": "b25522a0f4bde8c80603f3ba5e3472059972e3b5",
|
| 15 |
+
"input": { "name": "crops", "dtype": "float32", "shape": [1, 3, 192, 64] },
|
| 16 |
+
"output": { "name": "save_infer_model/scale_0.tmp_0", "dtype": "float32", "shape": [1, 512] },
|
| 17 |
+
"preprocessingId": "rgba8-white-upright-rgb-halfpixel-f64-imagenet-f32-v1",
|
| 18 |
+
"normalizationId": "l2-f32-v1",
|
| 19 |
+
"defaultSource": "modelscope",
|
| 20 |
+
"backends": ["wasm", "webgpu"]
|
| 21 |
+
}
|
pplcnet-reid/0.1.0/pplcnet-reid-fp32.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24d347f47405bb1bd24fd582783507edbcb16571d2e845d0528b0ad7856336e4
|
| 3 |
+
size 33704835
|