Skip to main content

A command line tool for parsing and displaying RKNN model information

Project description

RKNN CLI

A command line tool for parsing and displaying RKNN model information.

Installation

pip install -e .

Usage

rknncli <path-to-rknn-model>

Example:

rknncli assets/yolov5s-640-640.rknn

Output Format

The tool prints model information in the following format:

Model: rknn model
Version: 1.6.2-source_code
Target Platform: rk3588

Input information
--------------------------------------------------------------------------------
  ValueInfo "images": type INT8, shape ['batch', 3, 'height', 'width'],

Output information
--------------------------------------------------------------------------------
  ValueInfo "output0": type INT8, shape ['batch', 255, 80, 80],
  ValueInfo "286": type INT8, shape ['batch', 255, 40, 40],
  ValueInfo "288": type INT8, shape ['batch', 255, 20, 20'],

Development

# Install in development mode
pip install -e .

# Run the CLI
python -m rknncli.cli assets/yolov5s-640-640.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

rknncli-0.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

rknncli-0.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file rknncli-0.2.0.tar.gz.

File metadata

  • Download URL: rknncli-0.2.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for rknncli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b5e6c26366c1b780ba5a9550652d8a3c62a4b1bb7ff3168894bcc86fe6777445
MD5 9fe51966b6de853ee7fe8174355bc77e
BLAKE2b-256 a3f9299c2c2a86e8c91fa2d461be3fda9f175e51bfb26e93c5de605b8ae655db

See more details on using hashes here.

File details

Details for the file rknncli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rknncli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for rknncli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63597f381c782104039c2253dbc5bedcff25b8f3e77b2e3e33ae2884f07a6c87
MD5 90903d9b6f81e57b2bfbc26da8fdf9f4
BLAKE2b-256 5dda26587ed16ca9f09445f8d1dd026f03db4c04d4c592b08be5c0d6e3614212

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