PaddleClas
PaddleClas copied to clipboard
PPShitu中的特征向量提取时的图片归一化处理中,mean,std值,怎么来的?
欢迎您使用PaddleClas并反馈相关问题,非常感谢您对PaddleClas的贡献! 提出issue时,辛苦您提供以下信息,方便我们快速定位问题并及时有效地解决您的问题:
- PaddleClas版本以及PaddlePaddle版本:请您提供您使用的版本号或分支信息,如PaddleClas release/2.2和PaddlePaddle 2.1.0
- 涉及的其他产品使用的版本号:如您在使用PaddleClas的同时还在使用其他产品,如PaddleServing、PaddleInference等,请您提供其版本号
- 训练环境信息: a. 具体操作系统,如Linux/Windows/MacOS b. Python版本号,如Python3.6/7/8 c. CUDA/cuDNN版本, 如CUDA10.2/cuDNN 7.6.5等
- 完整的代码(相比于repo中代码,有改动的地方)、详细的错误信息及相关log
https://github.com/PaddlePaddle/PaddleClas/blob/release/2.5/deploy/configs/inference_rec.yaml
NormalizeImage中的mean,std值,是经验值?还是根据infer_imgs的图片,实际算出来的?
这个是根据ImageNet的mean和std来做的,事实上,这个值只要推理和训练保持一致的话,对结果影响不大
Since this issue has not been updated for more than three months, it will be closed, if it is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于该问题超过三个月未更新,将会被关闭,若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。