Command Palette

Search for a command to run...

Back to skills
skill № 04008

model-conversion

瑞芯微RKNN模型转换 - ONNX PyTorch TensorFlow转RKNN

FreeNo executable scripts
MIUAVby MIUAV★ 30 GitHub stars

Install model-conversion in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Rockchip RKNN 模型转换技能

将PyTorch/TensorFlow/ONNX模型转换为RKNN格式

何时使用

  • 将训练好的模型部署到RK3588/RK3568
  • 模型量化 (INT8/FP16)
  • 混合精度优化

支持的模型格式

格式 支持程度 说明
ONNX 完整支持 推荐格式
PyTorch 完整支持 .pt/.pth
TensorFlow 部分支持 .pb
TFLite 部分支持 .tflite

转换示例

from rknn.api import RKNN

rknn = RKNN()
# 配置输入预处理
rknn.config(
    mean_values=[123.675, 116.28, 103.53],
    std_values=[58.82, 57.12, 57.12],
    inputs_format=['RGB']
)
# 加载模型
rknn.load_onnx(model='resnet50.onnx', input_size_list=1, 3, 224, 224)
# 构建
rknn.build(do_quantization=True, quantize_dtype='int8')
# 保存
rknn.save_rknn('./resnet50.rknn')

常见问题

  • 算子不支持: 使用ONNX算子替代
  • 量化精度损失: 调整量化算法或使用FP16

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the model-conversion skill do?

瑞芯微RKNN模型转换 - ONNX PyTorch TensorFlow转RKNN

How do I install the model-conversion skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the model-conversion skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare model-conversion with