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

替换模型 #97

Open
yangfangxue opened this issue Jul 27, 2022 · 5 comments
Open

替换模型 #97

yangfangxue opened this issue Jul 27, 2022 · 5 comments

Comments

@yangfangxue
Copy link

比如我要替换nanodet-plus-m-1.5x_416_ncnn这个模型该怎么修改 运行崩溃

@cmdbug
Copy link
Owner

cmdbug commented Jul 27, 2022

nanodet有ncnn的示例啊,复制过来改一改。

@yangfangxue
Copy link
Author

感谢楼主好人一生平安,已经解决。
我是移动端,如果想同时让用2个模型该怎么操作 比如说
#pragma mark 相机回调图片

  • (void)detectImage:(UIImage *)image
    在这个方法里面我想同时让界面上显示Simple-Post和NanoDet这2个模型之后的图像 我尝试了一下让image同时走进2个模型的构造函数中 结果造成了崩溃,请问有什么好的解决方法吗。

@cmdbug
Copy link
Owner

cmdbug commented Jul 28, 2022

同时走没试过,但可以分开走,先走其中一个再走另一个,拿到2个的结果再进行绘制。

@yangfangxue
Copy link
Author

已经试了2种模型同时跑的情况,感觉还可以,能请教楼主一个问题么 demo中的Yolact模型如何让它只识别人体呢(person)呢? 如果要改代码的情况下还请楼主如果方便的话可以粘贴一下代码供我们参考
感谢楼主好人一生平安

@cmdbug
Copy link
Owner

cmdbug commented Aug 1, 2022

if (类型 == person) {
这是person的结果,该干嘛干嘛
}

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