Skip to content
New issue

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

自己数据集训练的YoloV8模型精度变低问题 #53

Open
Caleb-Rainbow opened this issue May 24, 2024 · 2 comments
Open

自己数据集训练的YoloV8模型精度变低问题 #53

Caleb-Rainbow opened this issue May 24, 2024 · 2 comments

Comments

@Caleb-Rainbow
Copy link

使用作者项目中的模型识别就没有问题,换成自己的模型精度就大大降低,原因是:yolo.cpp里的detect函数内
我的:ncnn::Mat in = ncnn::Mat::from_pixels_resize(rgb.data, ncnn::Mat::PIXEL_RGB, width, height, w, h);
作者的:ncnn::Mat in = ncnn::Mat::from_pixels_resize(rgb.data, ncnn::Mat::PIXEL_RGB2BGR, width, height, w, h);
大家一定注意自己模型输入的image格式,是rgb还是bgr,估计作者的是bgr
如果还有问题可参考自查:https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result

@tonglingxiangyu
Copy link

解决了,多谢大佬

@JackChen1994
Copy link

多谢大佬!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants