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

安装后识别错误 #4

Open
lozenyin opened this issue Mar 16, 2023 · 6 comments
Open

安装后识别错误 #4

lozenyin opened this issue Mar 16, 2023 · 6 comments

Comments

@lozenyin
Copy link

image
如图所示,本人在一块ARM64的板子上部署了你的代码,但是它并没有正确识别到,请问这种情况需要我怎么修复?

@Qengineering
Copy link
Owner

It has to do with the latest version of ncnn. The output is not formatted as before, hence this odd pattern.
Best way to deal with it is replacing ncnn with an older version. You have to re-install ncnn from the beginning.
$ git clone -b 20210720 --depth=1 https://github.com/Tencent/ncnn.git

@lozenyin
Copy link
Author

如果需要使用最新的ncnn的话,代码上需要怎么处理?

@lozenyin
Copy link
Author

使用了git clone -b 20210720 --depth=1 https://github.com/Tencent/ncnn.git
还是没有准确显示
image

@Qengineering
Copy link
Owner

You have to install the older ncnn version according to the guide
Please start at the point where the repo is loaded (see the website)
In case of an 64-OS:

# install ncnn
$ cd ncnn
$ mkdir build
$ cd build
# build 64-bit ncnn
$ cmake -D NCNN_DISABLE_RTTI=OFF -D NCNN_BUILD_TOOLS=ON \
-D CMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake ..
$ make -j4
$ make install
# copy output to dirs
$ sudo mkdir /usr/local/lib/ncnn
$ sudo cp -r install/include/ncnn /usr/local/include/ncnn
$ sudo cp -r install/lib/libncnn.a /usr/local/lib/ncnn/libncnn.a

Or in case of an 32-OS

$ cd ncnn
$ mkdir build
$ cd build
# build 32-bit ncnn
$ cmake -D NCNN_DISABLE_RTTI=OFF \
-D NCNN_BUILD_TOOLS=ON \
-D CMAKE_EXE_LINKER_FLAGS=-ldl \
-D CMAKE_TOOLCHAIN_FILE=../toolchains/pi3.toolchain.cmake ..
$ make -j4
$ make install
# copy output to dirs
$ sudo mkdir /usr/local/lib/ncnn
$ sudo cp -r install/include/ncnn /usr/local/include/ncnn
$ sudo cp -r install/lib/libncnn.a /usr/local/lib/ncnn/libncnn.a

@lozenyin
Copy link
Author

本人已经根据上诉要求进行部署了,情况并没有改变。

@Qengineering
Copy link
Owner

I'm afraid I can help you on this one.
Please try another Hand Pose network.

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