Skip to main content

No project description provided

Project description

A brief guide to Acuitylite

Acuitylite is an end-to-end neural-network deployment tool for embedded systems.
Acuitylite support converting caffe/darknet/onnx/tensorflow/tflite models to TIM-VX/TFLite cases. In addition, Acuitylite support asymmetric uint8 and symmetric int8 quantization.

Attention: We have introduced some important changes and updated the APIs that are not compatible with the version before Acuitylite6.21.0(include). Please read the document and demos carefully.

System Requirement

  • OS:
    Ubuntu Linux 20.04 LTS 64-bit(python3.8)
    Ubuntu Linux 22.04 LTS 64-bit(python3.10)
    Ubuntu Linux 24.04 LTS 64-bit(python3.12)

Install

1. build the recommended docker image and run a container
2. pip install acuitylite --no-deps

Document

Reference: https://verisilicon.github.io/acuitylite

Framework Support

Tips: You can export a TFLite app and using tflite-vx-delegate to run on TIM-VX if the exported TIM-VX app does not meet your requirements.

How to generate nbg and TIM-VX case

When you need generate TIM-VX case and nbg, please set the export() function's param pack_nbg_unify=True. Such as: TimVxExporter(model).export(pack_nbg_unify=True), it will use our default SDK. If you want to use your own SDK and licence, please set the param of export() viv_sdk, licence. Such as: TimVxExporter(model).export(pack_nbg_unify=True, viv_sdk=your_sdk_path, licence=path_of_licence_txt)

Attention: your sdk directory structure must strictly follow the directory structure of acuitylib/vsi_sdk!!! your sdk need satisfy the structure of "your_sdk_path/build/install", "your_sdk_path/prebuilt-sdk/x86_64_linux", otherwise the path may have problems. And the licence content is the device target which you want to use.

How to run TIM-VX case

The exported TIM-VX case supports both make and cmake.
Please set environment for build and run case:

  • TIM_VX_DIR=/path/to/tim-vx/build/install
  • VIVANTE_SDK_DIR=/path/to/tim-vx/prebuilt-sdk/x86_64_linux
  • LD_LIBRARY_PATH=$TIM_VX_DIR/lib:$VIVANTE_SDK_DIR/lib

Attention: The TIM_VX_DIR path should include lib and header files of TIM-VX. You can refer TIM-VX to build TIM-VX.

How to generate nbg by Ovxlib

When you need generate nbg, please use OvxlibExporter class and set the export() function's param pack_nbg_only=True. Such as: OvxlibExporter(model).export(pack_nbg_only=True), it will use our default SDK. If you want to use your own SDK and licence, please set the "viv_sdk" and "licence" params of export() function. Such as: OvxlibExporter(model).export(pack_nbg_only=True, viv_sdk=your_sdk_path, licence=path_of_licence_txt)

Attention: your sdk directory structure must strictly follow the directory structure of acuitylib/vsi_sdk!!! your sdk need satisfy the structure of "your_sdk_path/prebuilt-sdk/x86_64_linux", otherwise the path may have problems. The content of licence is the device target which you want to use.

Support

Create issue on github or email to ML_Support@verisilicon.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

acuitylite-6.51.0-cp312-cp312-manylinux2010_x86_64.whl (276.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.12+ x86-64

acuitylite-6.51.0-cp310-cp310-manylinux2010_x86_64.whl (218.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.12+ x86-64

acuitylite-6.51.0-cp38-cp38-manylinux2010_x86_64.whl (304.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

File details

Details for the file acuitylite-6.51.0-cp312-cp312-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for acuitylite-6.51.0-cp312-cp312-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 29095417d8916c60f7ca9fa80d58e235aa4cfe72f629ed8ed4beaaaeea82ca8d
MD5 0f0fcab6abcf4e48f8b08102e8e44595
BLAKE2b-256 1e268414e78a0b41c72f492ffebe60bc36218fd22e1fffe34706f765b89f40a2

See more details on using hashes here.

File details

Details for the file acuitylite-6.51.0-cp310-cp310-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for acuitylite-6.51.0-cp310-cp310-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4a402a9928fab8c365c1811d705582cec9089699c5dc336c0335267a36ca9770
MD5 d9c9dd40d1e0b9e8509e65dfa23f4cb9
BLAKE2b-256 64734224d11bc8d4e01eb52b92a8cf59541331a1c59472d323270e179c6e823f

See more details on using hashes here.

File details

Details for the file acuitylite-6.51.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for acuitylite-6.51.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a644a2b1ada57765ff750676ec69098a4db6a147b48edc8d3c4fb00f8ace1584
MD5 2ffc05f442e960a743fb92ff5837bd9f
BLAKE2b-256 376df80b025aa9e411f81fe63d8824a2e03df5d5a70dcab3ef86537a988a557d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page