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

大佬请教一个问题 #25

Open
huochen1 opened this issue Oct 18, 2024 · 2 comments
Open

大佬请教一个问题 #25

huochen1 opened this issue Oct 18, 2024 · 2 comments

Comments

@huochen1
Copy link

auto rknn_pool1 = std::make_unique(
model_path_1, thread_count1, label_path_1);
auto rknn_pool2 = std::make_unique(
model_path_2, thread_count2, label_path_2);
大佬请教一个问题,我拿您的这个程序修改了一下,使用这种方式来加载两个模型,发现label_path_2里面的值会覆盖掉label_path_1的值,即两个模型显示的标签是一样的,但是label_path_2跟label_path_1里面的内容是不一样的,是后处理那里获取到的标签数据出错了吗,我看初始化的时候加载的label路径是对的。

@kaylorchen
Copy link
Owner

auto rknn_pool1 = std::make_unique( model_path_1, thread_count1, label_path_1); auto rknn_pool2 = std::make_unique( model_path_2, thread_count2, label_path_2); 大佬请教一个问题,我拿您的这个程序修改了一下,使用这种方式来加载两个模型,发现label_path_2里面的值会覆盖掉label_path_1的值,即两个模型显示的标签是一样的,但是label_path_2跟label_path_1里面的内容是不一样的,是后处理那里获取到的标签数据出错了吗,我看初始化的时候加载的label路径是对的。

我这里好像是用了分身的那种机制,不能加载两个模型。你需要把加载模型那一部分改一下

@huochen1
Copy link
Author

huochen1 commented Nov 12, 2024 via email

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