We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ocr.pytorch/detect/ctpn_predict.py第43行, image = image.astype(np.float32) - config.IMAGE_MEAN 对这一步的操作的意义(是减均值吗?),以及config.IMAGE_MEAN取值的依据不懂。。。 我是刚入门机器视觉,问题也比较小白,有劳up主了。。
image = image.astype(np.float32) - config.IMAGE_MEAN
The text was updated successfully, but these errors were encountered:
是的,config.IMAGE_MEAN中的三个值分别是blue green red三个通道的图像均值,在代码里的值是从IMAGENET数据集上一个均值,比较有代表性,其实也可以直接取128简单粗暴一点,其实差异不大
Sorry, something went wrong.
多谢解答,好棒!
No branches or pull requests
ocr.pytorch/detect/ctpn_predict.py第43行,
image = image.astype(np.float32) - config.IMAGE_MEAN
对这一步的操作的意义(是减均值吗?),以及config.IMAGE_MEAN取值的依据不懂。。。
我是刚入门机器视觉,问题也比较小白,有劳up主了。。
The text was updated successfully, but these errors were encountered: