JDAI-CV / fast-reid

SOTA Re-identification Methods and Toolbox
Apache License 2.0
3.42k stars 837 forks source link

how to move the preprocessing step out of model? #598

Closed young169 closed 2 years ago

young169 commented 2 years ago

❓ How to do something using fastreid

We'd like to deploy a MGN model, I noticed that the SUB and DIV layer of data preprocessing caused the inconsistent outputs, so I tried to set the pixel mean to 0 and pixel std to 1. However this seem to be helpless, so how to modify the code so that the transferred ONNX file will not contain those two layers?

PrinceP commented 2 years ago

Comment out line130