This is an old revision of the document!
Only New VIM4 supports NPU, you can check the version of your VIM4 here: VIM4 Versions
We provided the Docker container for you to convert the model.
Follow Docker official docs to install: Install Docker Engine on Ubuntu.
$ git clone https://gitlab.com/khadas/vim4_npu_sdk.git $ cd vim4_npu_sdk & ls bin demo docs README.md
Get Docker:
$ cd vim4_npu_sdk $ docker pull yanwyb/npu:v1 $ docker run -it --name vim4-npu1 -v $(pwd):/home/khadas/npu \ -v /etc/localtime:/etc/localtime:ro \ -v /etc/timezone:/etc/timezone:ro \ yanwyb/npu:v1
Convert the model in docker:
khadas@2655b6cbbc01:~/npu$ cd demo/ khadas@2655b6cbbc01:~/npu/demo$ bash convert_adla.sh
Each platform will generate an adla file according to the demo.
khadas@2655b6cbbc01:~/npu/demo$ ls
caffe_output darknet_output dataset.txt libstdc++_so mxnet_output paddle_output quantized_tflite_output tflite_output
convert_adla.sh data keras_output model_source onnx_output pytorch_output tensorflow_output
For more information, please check the documentations from docs/model_conversion_user_guide_1.2.pdf
.