alphapose_inference_rknn's People
alphapose_inference_rknn's Issues
linux环境下编译的一些问题
`bash build-linux.sh
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/3rdparty/opencv/opencv-linux-aarch64 (found version "3.4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/build/build_linux_aarch64
make[2]: *** No rule to make target '../../../../Linux/librknn_api/aarch64/librknn_api.so', needed by 'rknn_alphapose_demo'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 33%] Building CXX object CMakeFiles/rknn_alphapose_demo.dir/src/main.cc.o
[ 66%] Building CXX object CMakeFiles/rknn_alphapose_demo.dir/src/rknnNet.cc.o
In file included from /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/rknnNet.cc:1:
/home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/rknnNet.h:4:10: fatal error: android/log.h: No such file or directory
4 | #include <android/log.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rknn_alphapose_demo.dir/build.make:90: CMakeFiles/rknn_alphapose_demo.dir/src/rknnNet.cc.o] Error 1
In file included from /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:30:
/home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/rknnNet.h:4:10: fatal error: android/log.h: No such file or directory
4 | #include <android/log.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rknn_alphapose_demo.dir/build.make:76: CMakeFiles/rknn_alphapose_demo.dir/src/main.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/rknn_alphapose_demo.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
`
然后我注释掉了 #include <android/log.h>这行代码,又出现新的报错。
bash build-linux.sh -- Configuring done -- Generating done -- Build files have been written to: /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/build/build_linux_aarch64 Consolidate compiler generated dependencies of target rknn_alphapose_demo make[2]: *** No rule to make target '../../../../Linux/librknn_api/aarch64/librknn_api.so', needed by 'rknn_alphapose_demo'. Stop. make[2]: *** Waiting for unfinished jobs.... [ 33%] Building CXX object CMakeFiles/rknn_alphapose_demo.dir/src/main.cc.o /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc: In function 'int main(int, char**)': /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:258:22: error: 'results' was not declared in this scope 258 | for(int i=0; i<results.size(); ++i) { | ^~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:261:45: error: 'max_scores' was not declared in this scope 261 | std::cout << "img_score: " << max_scores[i][j] << std::endl; | ^~~~~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:263:14: error: 'max_scores' was not declared in this scope 263 | if(max_scores[i][0] > threshold && max_scores[i][1] > threshold && | ^~~~~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:267:26: error: 'img' was not declared in this scope 267 | cv::circle(img, results[i][0], 3, Scalar(255,0,0), -1); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:279:14: error: 'max_scores' was not declared in this scope 279 | if(max_scores[i][5] > threshold && max_scores[i][6] > threshold && | ^~~~~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:282:26: error: 'img' was not declared in this scope 282 | cv::circle(img, results[i][5], 3, Scalar(255,0,0), -1); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:296:14: error: 'max_scores' was not declared in this scope 296 | if(max_scores[i][5] > threshold && max_scores[i][6] > threshold && | ^~~~~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:298:26: error: 'img' was not declared in this scope 298 | cv::circle(img, results[i][11], 3, Scalar(255,0,0), -1); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:307:14: error: 'max_scores' was not declared in this scope 307 | if(max_scores[i][11] > threshold && max_scores[i][12] > threshold && | ^~~~~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:310:26: error: 'img' was not declared in this scope 310 | cv::circle(img, results[i][11], 3, Scalar(255,0,0), -1); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:325:35: error: 'img' was not declared in this scope 325 | cv::imwrite("./result.jpg", img); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:326:28: error: 'ctx' was not declared in this scope 326 | rknn_outputs_release(ctx, sess->io_num.n_output, outputs); | ^~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:326:33: error: 'sess' was not declared in this scope 326 | rknn_outputs_release(ctx, sess->io_num.n_output, outputs); | ^~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:326:56: error: 'outputs' was not declared in this scope; did you mean 'puts'? 326 | rknn_outputs_release(ctx, sess->io_num.n_output, outputs); | ^~~~~~~ | puts /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:327:16: error: type '<type error>' argument given to 'delete', expected pointer 327 | delete[] outputs; | ^~~~~~~ /home/pi/app/alphapose_inference_rknn/rknnNet_alphapose_cpp/examples/rknn_alphapose_demo/src/main.cc:330:72: error: 't2' was not declared in this scope; did you mean 't3'? 330 | std::cout << "preprocess data+inference+after deal time: " << t3-t2 << std::endl; | ^~ | t3 make[2]: *** [CMakeFiles/rknn_alphapose_demo.dir/build.make:76: CMakeFiles/rknn_alphapose_demo.dir/src/main.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/rknn_alphapose_demo.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
fastPose.onnx Download address
Hello author, can you provide the download address for fastPose.onnx?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.