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

删除retinaface,替换成opencv(yunet/pphumanseg) #284

Closed
wants to merge 1 commit into from
Closed

删除retinaface,替换成opencv(yunet/pphumanseg) #284

wants to merge 1 commit into from

Conversation

glyh
Copy link
Collaborator

@glyh glyh commented Apr 16, 2024

#270
现在Linux下可执行二进制程序只有123M,之前是600M左右。yunet的int8模型只有约100k,最大的pphumanseg的模型也只有6M。

使用方法:

  • 选项1:yunet人脸检测
    1. cvzoo yunet下载任意一个onnx模型
    2. 在config.ini中:
      [Picture]
      ai_engine = yunet
      yunet_model = #此处填写下载的模型路径
      
  • 选项2:pphumanseg人体分片
    1. cvzoo pphumanseg下载任意一个onnx模型,建议不要下载int8的因为我本地测试跑不了int8的模型
    2. 在config.ini中:
      [Picture]
      ai_engine = pphumanseg
      pphumanseg_model = #此处填写下载的模型路径
      

顺便:

  • 修复了无法将只有数字的番号封面进行AI截图的BUG
  • 以及,yunet是设计用来real-time 人脸识别的,因此可以随意使用。

未来:

  • 将构建系统改成poetry。之前poetry改不成功就是因为retina连出来的依赖地狱。

@glyh glyh mentioned this pull request Apr 17, 2024
1 task
@glyh glyh changed the title 删除retinaface,替换成opencv+yunet 删除retinaface,替换成opencv(yunet/pphumanseg) Apr 17, 2024
@glyh
Copy link
Collaborator Author

glyh commented Sep 24, 2024

因为添加这个模型还是让程序大小翻倍了,之后会考虑更好的拓展方法。暂时关闭PR

@glyh glyh closed this Sep 24, 2024
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

Successfully merging this pull request may close these issues.

1 participant