Comments (14)
Thanks for your feedback. We provide one-click compilation scripts that are currently only suitable for cross-compilation of Linux servers. However, due to various differences in the configuration of different server environments, it is inevitable that various problems will be encountered during the compilation process. We are constantly optimizing the compilation process of bolt. In the future, we will try our best to meet the compilation needs of users such as linux/windows/mac, and make compilation as easy to use as possible. If possible, you can paste the problems encountered during the compilation process, and we are very happy to analyze and solve the problems for you. You are also welcome to contact us at any time if you encounter any problems. My contact email is: [email protected].
感谢您的反馈。我们提供一键编译脚本目前仅适用于linux服务器交叉编译,但由于不同服务器环境配置存在各种差异,难免会在编译过程中遇到各种各样的问题,我们在不断优化bolt的编译流程。未来我们会尽可能满足linux/windows/mac等用户的编译需求,尽可能让编译变得简单易用。如果可以,您可以把编译过程中遇到的问题粘贴下来,我们非常乐意为您去分析并解决问题。也欢迎您遇到问题随时联系我们,我的联系邮箱是:[email protected].
from bolt.
I want build on Mac OS using ndk build aarch64 arm version
from bolt.
maybe just like other framework, usually set NDK path and cmake .. --some options, then build lib and binary which can be run at android with adb...
from bolt.
where can I find XX.bolt in https://github.com/huawei-noah/bolt/blob/master/docs/BENCHMARK.md ....
from bolt.
device:/data/local/tmp/install_arm_llvm/examples # ./benchmark -m ./mobilenet_v2_f32.bolt -l 1
Please enter this command './benchmark --help' to get more usage information.
option is -m <boltModelPath>, value is: ./mobilenet_v2_f32.bolt
option is -l [loopTime], value is: 1
Input Tensor Dimension: dt:6 df:0 dims:4(1,3,224,224)
Illegal instruction (core dumped)
from bolt.
git clone https://github.com/huawei-noah/bolt/blob/master/docs/INSTALL.md
install ndk cmake ...
adb pull libOpenCL ...
sh ./third_party/install.sh -c arm_llvm -t 12
sh ./install.sh -c arm_llvm -t 33 -g ON
adb push install_arm_llvm /data/local/tmp/
get caffe model from https://github.com/shicai/MobileNet-Caffe
device:/data/local/tmp/install_arm_llvm/tools # ./X2bolt -d ./models/ -m mobilenet_v2 -i FP32
Enter './X2bolt --help' to get more usage information.
Enter './X2bolt --version' to get the version.
option is -d <modelDirectory>, value is: ./models/
option is -m <modelName>, value is: mobilenet_v2
option is -i <inferencePrecision>, value is: FP32
Model Conversion Succeeded!
device:/data/local/tmp/install_arm_llvm/examples # ./benchmark -m ./mobilenet_v2_f32.bolt -l 1
Please enter this command './benchmark --help' to get more usage information.
option is -m <boltModelPath>, value is: ./mobilenet_v2_f32.bolt
option is -l [loopTime], value is: 1
Input Tensor Dimension: dt:6 df:0 dims:4(1,3,224,224)
Illegal instruction (core dumped)
from bolt.
git clone https://github.com/huawei-noah/bolt/blob/master/docs/INSTALL.md
install ndk cmake ...
adb pull libOpenCL ...
sh ./third_party/install.sh -c arm_llvm -t 12
sh ./install.sh -c arm_llvm -t 33 -g ON
adb push install_arm_llvm /data/local/tmp/
get caffe model from https://github.com/shicai/MobileNet-Caffe
device:/data/local/tmp/install_arm_llvm/tools # ./X2bolt -d ./models/ -m mobilenet_v2 -i FP32
Enter './X2bolt --help' to get more usage information.
Enter './X2bolt --version' to get the version.
option is -d <modelDirectory>, value is: ./models/
option is -m <modelName>, value is: mobilenet_v2
option is -i <inferencePrecision>, value is: FP32
Model Conversion Succeeded!
device:/data/local/tmp/install_arm_llvm/examples # ./benchmark -m ./mobilenet_v2_f32.bolt -l 1
Please enter this command './benchmark --help' to get more usage information.
option is -m <boltModelPath>, value is: ./mobilenet_v2_f32.bolt
option is -l [loopTime], value is: 1
Input Tensor Dimension: dt:6 df:0 dims:4(1,3,224,224)
Illegal instruction (core dumped)
from bolt.
maybe just like other framework, usually set NDK path and cmake .. --some options, then build lib and binary which can be run at android with adb...
Thanks for your suggestions. We will further optimize the compilation. Supports for Windows and Mac are coming soon.
from bolt.
git clone https://github.com/huawei-noah/bolt/blob/master/docs/INSTALL.md install ndk cmake ... adb pull libOpenCL ... sh ./third_party/install.sh -c arm_llvm -t 12 sh ./install.sh -c arm_llvm -t 33 -g ON adb push install_arm_llvm /data/local/tmp/ get caffe model from https://github.com/shicai/MobileNet-Caffe device:/data/local/tmp/install_arm_llvm/tools # ./X2bolt -d ./models/ -m mobilenet_v2 -i FP32 Enter './X2bolt --help' to get more usage information. Enter './X2bolt --version' to get the version. option is -d <modelDirectory>, value is: ./models/ option is -m <modelName>, value is: mobilenet_v2 option is -i <inferencePrecision>, value is: FP32 Model Conversion Succeeded! device:/data/local/tmp/install_arm_llvm/examples # ./benchmark -m ./mobilenet_v2_f32.bolt -l 1 Please enter this command './benchmark --help' to get more usage information. option is -m <boltModelPath>, value is: ./mobilenet_v2_f32.bolt option is -l [loopTime], value is: 1 Input Tensor Dimension: dt:6 df:0 dims:4(1,3,224,224) Illegal instruction (core dumped)
We think running benchmark(compiled with v7) on v8 device or running benchmark(compiled with v8) on v7 device will cause "Illegal instruction" error. Thus, could you paste what compilation options(https://github.com/huawei-noah/bolt/blob/master/common/cmakes/bolt.cmake) you set when compling bolt ? Pay particular attention to these two options:
Line 24 in 6e4017c
Line 25 in 6e4017c
If possible, you can print out the COMMON_FLAGS below
Line 46 in 6e4017c
from bolt.
thanks for your suggestion.. And where can I find XX.bolt in https://github.com/huawei-noah/bolt/blob/master/docs/BENCHMARK.md, would you supply a benchmark model zoo ?
from bolt.
thanks for your suggestion.. And where can I find XX.bolt in https://github.com/huawei-noah/bolt/blob/master/docs/BENCHMARK.md, would you supply a benchmark model zoo ?
You're welcome. For users' convenience, a benchmark model zoo will be provided for you all in the next version. Given that some models of Huawei Noah's Ark Lab mentioned in benchmark report are not open-source, maybe just the open-source models will be opened to you. Welcome to explore bolt further, any question or issue can be submitted to us, and we will reply to you as soon as possible.
from bolt.
just some fake models, like mobilenet_v1 v2 v3 shufflenet ...
from bolt.
just some fake models, like mobilenet_v1 v2 v3 shufflenet ...
Ok,we got it. And I highly recommend that you can use X2bolt to convert Mobilenet(v1/v2) , Resnet50, Squeezenet(1.0/1.1) to XXX.bolt. X2bolt is quite easy to use and you can run "X2bolt --help" for the detailed usage.
from bolt.
ok.. thx
from bolt.
Related Issues (20)
- Elewise算子耗时较大 HOT 2
- android平台编译失败 HOT 6
- 如何设置运行时浮点精度为fp16 HOT 4
- 展开OCL kernel中的标量dot操作可以获得更高的GFLOPs HOT 2
- arm cpu dilated conv遇到nchw类型的输入会出错
- 是否支持BGEMM? HOT 3
- TinyBert模型经过post_training_quantization进行INT8量化后,在Linux_X86-64平台推理报错 HOT 4
- version 1.2.1 and 1.3.0 issues HOT 7
- x86_64编译报错 HOT 5
- I have a problem. Does bolt quantization support x86? HOT 2
- x2bolt转化工具报错 HOT 3
- 请问bolt有1.3.1的发布计划吗? HOT 2
- BNN 只支持conv算子么? HOT 1
- binary conv arm中input bit-packing像素顺序问题 HOT 6
- Kotlin MultiPlatform Library HOT 1
- 声音克隆的demo可以参考一下吗? HOT 1
- Unable to compile jpeg on Windows HOT 1
- 请问支持mips架构的板子吗 HOT 1
- Can't convert model to int8 precision with post_training_quantization HOT 3
- C API ducument don't exsit
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.
from bolt.