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

模型问题请教 #7

Open
chenbingiOS opened this issue Dec 13, 2024 · 4 comments
Open

模型问题请教 #7

chenbingiOS opened this issue Dec 13, 2024 · 4 comments

Comments

@chenbingiOS
Copy link

大佬好
请教一下,通读代码,没有看到 mnn_hivision_modnet.mnn 的使用地方,想请教一下,这个模型有留着的意义吗

我还发现 symbol_10_320_20L_5scales_v2_deploy.mnn 的模型有人脸识别输出结果靠左的问题

20241213_105118 jpgface_result
20241213_110528 jpgface_result

@zjkhahah
Copy link
Owner

mnn_hivision_modnet.mnn 是另外的人像抠图模型 symbol_10_320_20L_5scales_v2_deploy.mnn 的模型有人脸识别输出结果靠左可以试用下symbol_10_320_20L_8scales_v2_deploy.mnn 后续会增加更多人脸检测模型

@zjkhahah
Copy link
Owner

可以通过-e 来调整人脸的位置 以及-f 8 来换用人脸检测模型

@chenbingiOS
Copy link
Author

chenbingiOS commented Dec 13, 2024

感谢大佬,我改为使用 8 模型了

还有个问题
generate_layout_image 方法内部
if (typography_rotate) {
cv::transpose(resize_input_image, resize_input_image);
std::swap(width, height);
}
会导致排版图片出现镜像问题

20241213_160227 jpglayout_photo
20241213_160227 jpgresult_standard

if (typography_rotate) {
cv::transpose(resize_input_image, resize_input_image);
cv::flip(resize_input_image, resize_input_image, 0);
std::swap(width, height);
}

目前我加了一个 cv::flip 方法来修复

因为使用 cv::transpose
A B C
D E F
G H I
输出结果是
A D G
B E H
C F I

@zjkhahah
Copy link
Owner

好的 目前正在针对美妆部分进行开发 可持续关注

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

2 participants