Skip to main content

A tool for inspecting RKNN models

Project description

rknn-inspect

CLI tool for inspecting RKNN models.

rknn-inspect is a command-line utility for inspecting and profiling Rockchip RKNN models. It helps developers understand model structure, input/output shapes and formats, SDK version info, and performance metrics. Useful during model development, conversion, and deployment on Rockchip NPUs.

Usage

rknn-inspect --help
Usage: rknn-inspect [OPTIONS] <MODEL_PATH>

Arguments:
  <MODEL_PATH>  Path to the model file

Options:
      --lib-index <LIB_INDEX>  Which library path to use [default: 0]
  -i, --io                     Show inputs and outputs
  -n, --native-io              Show native input/output information
      --native-nhwc-io         Show native input/output information in NHWC format
      --native-nc1hwc2-io      Show native input/output information in NC1HWC2 format
  -p, --perf                   Enable performance profiling
  -s, --sdk                    Show SDK information
      --npu-cores <NPU_CORES>  Select NPU cores to use [default: auto] [possible values: core0, core1, core2, core-all, core0-1, core0-1-2, auto]
      --markdown               Output in Markdown format
      --full-name              Show full name of the op in the --perf output
  -h, --help                   Print help

Installation

pipx install rknn-inspect

Extended Usage

View the input/output names, shapes, data types, and formats

rknn-inspect --io model.rknn

View Performance Metrics

rknn-inspect --perf model.rknn

View Performance Metrics for Specific NPU Core/s

rknn-inspect --npu-cores core0 --perf model.rknn

Project details


Download files

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

Source Distribution

rknn_inspect-0.3.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distributions

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

rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl (616.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

File details

Details for the file rknn_inspect-0.3.0.tar.gz.

File metadata

  • Download URL: rknn_inspect-0.3.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for rknn_inspect-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c533706ac5080062dae1775db14caa46ee8f92c5dc17b7bae7a7d02ff48c4166
MD5 341e4f9716151082a1552fb15a05bc9b
BLAKE2b-256 0f2092a3b557a734e378d15542b474111615d5df6f31f88b6eefb9483d0e7df8

See more details on using hashes here.

File details

Details for the file rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for rknn_inspect-0.3.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ed405949e357b187ca3c2d2b3d023522b1e40418061ca337e747a3af3f5b1239
MD5 9c5d2e6ea4107876124dd1d412badf7a
BLAKE2b-256 d8cdd7b9226b846855fcb8431fef01dae0d32ed73623cd6ef02bd2a976ad13fb

See more details on using hashes here.

File details

Details for the file rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rknn_inspect-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 35f9483fa4e5ed422dca4a8b90e64ae226b40a649fee80e3df9811c0335e1152
MD5 3a298792b3daa0676e224845ba85cb14
BLAKE2b-256 cbc8ba01059d5855cea78ccc70681ba25acb2658308116d09cac8df16200ba42

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