Export convert

From VectorSpaceLab/AREX-Skill · View interactive version

Export convert is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guides AdelaiDet checkpoint key conversion, optimizer stripping, FCOS/BlendMask weight migration, ONNX export, and optional deployment-runtime caveats.

How to use this skill

Skill file

export-convert

Use this sub-skill when a task asks to convert AdelaiDet checkpoints, rename FCOS/BlendMask keys, remove optimizer state, export an AdelaiDet model to ONNX, or reason about optional Caffe/NCNN/TensorRT deployment paths.

Use this route for

Do not use this route for

Read first

Skill-owned scripts

Typical workflow

  1. Confirm base setup with ../../scripts/check_install.py --cuda-ops.
  2. For checkpoint key errors, run the relevant small conversion script on a copy of the checkpoint.
  3. For ONNX export, dry-run first:

```bash

python scripts/export_onnx.py --repo-root /path/to/AdelaiDet \

--config configs/FCOS-Detection/R_50_1x.yaml \

--weights /path/to/model.pth --output output/model.onnx --dry-run

```

  1. Remove --dry-run only after config, weights, device, and output path are correct.
  2. Validate exported ONNX with the runtime stack required by the downstream target; do not assume Caffe/NCNN/TensorRT are installed.

Decision points

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.