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

How to run on Rockchip RK3399? #11

Open
sangdv opened this issue May 2, 2020 · 9 comments
Open

How to run on Rockchip RK3399? #11

sangdv opened this issue May 2, 2020 · 9 comments

Comments

@sangdv
Copy link

sangdv commented May 2, 2020

Hi, have you tried it on RK3399? Does libMNN with OpenCL work on RK3399? I did not successfully run it on RK3399.
Besides, will you release other face recognition model on MNN? For example, arcface (insightface) with resnet50 or resnet101 backbone?

@MirrorYuChen
Copy link
Owner

No RK3399 avaliable, I think you need change the mnn lib compiled on RK 3399

@sangdv
Copy link
Author

sangdv commented May 6, 2020

Thank you, will you release other face recognition model on MNN? For example, arcface (insightface) with resnet50 or resnet101 backbone?

@MirrorYuChen
Copy link
Owner

yes, but not now, I will provide later when I am free.

@xuguozhi
Copy link
Contributor

xuguozhi commented May 7, 2020

here are the solutions for RK3399 ubuntu:
alibaba/MNN#426 (comment)
Tips:

  • main.cpp add header: #include<dlfcn.h>

int main():

auto handle = dlopen("libMNN_CL.so", RTLD_NOW);

  • CMakeLists.txt: target_link_libraries(MNN pthread ${CMAKE_DL_LIBS})
    我在RK3399 Ubuntu 18上面成功了

@xuguozhi
Copy link
Contributor

xuguozhi commented May 7, 2020

First, you should build the right MNN lib version for your 3399(Ubuntu or Android)

@sangdv
Copy link
Author

sangdv commented May 7, 2020

Hi @xuguozhi, do you have any link to guide how to build right MNN lib version on RK3399? When building libMNN_CL.so, first I cloned MNN from https://github.com/alibaba/MNN, set OpenCL flag to ON, and then tried to build the lib but got some errors at the end like this: undefined reference to `dlopen'. Should I modify something in MNN source code?
Besides, I have a Android RK3399 but with other board, not that Firefly. Do you have any introduction to flash Ubuntu 18 to eMMC? Thank you!

@xuguozhi
Copy link
Contributor

xuguozhi commented May 7, 2020

if you use Android, please follow this link to build from source: https://www.yuque.com/mnn/en/build_android
or
you can just apply the prebuilt lib: https://github.com/alibaba/MNN/releases/download/0.2.1.9/MNN-Android-0.2.1.9.zip
version 0.2.1.9 works fine

@sangdv
Copy link
Author

sangdv commented May 7, 2020

Hi @xuguozhi, actually i built libMNN_CL.so on a ubuntu 18 virtual machine. Did you get the errors **undefined reference to dlopen', dlclose'... ** when building libmnn_CL.so?

@xuguozhi
Copy link
Contributor

xuguozhi commented May 7, 2020

Hi @xuguozhi, actually i built libMNN_CL.so on a ubuntu 18 virtual machine. Did you get the errors **undefined reference to dlopen', dlclose'... ** when building libmnn_CL.so?

Not get. I git cloned the source code on RK3399 board and build MNN on it

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