Metadata-Version: 2.4
Name: rknncli
Version: 0.2.0
Summary: A command line tool for parsing and displaying RKNN model information
Author: rknncli
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# RKNN CLI

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

## Installation

```bash
pip install -e .
```

## Usage

```bash
rknncli <path-to-rknn-model>
```

Example:

```bash
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

```bash
# Install in development mode
pip install -e .

# Run the CLI
python -m rknncli.cli assets/yolov5s-640-640.rknn
```
