Skip to content
Back to skills

Model Api Components

ASecurity

"Use and extend MMOCR registries, model components, data samples,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
developmentpythondebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-api-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Api Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Api Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-api-components/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-api-components)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-api-components
description: "Use and extend MMOCR registries, model components, data samples,
  transforms, metrics, visualizers, dictionaries, and OpenMMLab project
  extensions."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MMOCR model API components

Use this sub-skill when the task is to inspect, build, register, customize, or troubleshoot MMOCR internals rather than to run an end-to-end OCR prediction or a full training job.

## Best-fit tasks

- Register or build MMOCR model, transform, metric, visualizer, dictionary, or project-extension components through OpenMMLab registries.
- Decide which `DataSample` fields a custom head, postprocessor, metric, or visualizer should read and write.
- Add a custom backbone, head, postprocessor, metric, transform, or visualizer through a project module without editing the core MMOCR package.
- Diagnose registry/default-scope issues, dictionary token mismatches, transform pipeline type lookup failures, visualization/font/headless problems, and metric output-shape surprises.

Route these instead:

- End-to-end OCR/KIE inference, pretrained inferencers, or prediction result schemas: `../ocr-inference/`.
- Train/test CLIs, config inheritance, work directories, checkpoints, and evaluator placement in full experiments: `../training-evaluation-configs/`.
- Dataset conversion/preparation CLIs and dataset-zoo acquisition: `../data-preparation/`.

## Read this sub-skill

1. Start with [component-api-reference](references/component-api-reference.md) for registry names, data structures, model families, dictionaries, transforms, metrics, visualizers, and utility entry points.
2. Use [extension-patterns](references/extension-patterns.md) when adding custom modules through OpenMMLab project-style registration.
3. Use [troubleshooting](references/troubleshooting.md) when a component cannot be built, registered, visualized, evaluated, or connected to the expected `DataSample` fields.
4. Use the bundled [`mmocr_component_registry_probe.py`](scripts/mmocr_component_registry_probe.py) to inspect registry availability and dictionary files in the active Python environment.

## Operating rules

- Prefer registry/config-based extension over direct edits to MMOCR core modules.
- Initialize or preserve the `mmocr` default scope before building components from config dicts.
- Import custom extension modules before building configs that name their registered classes.
- Treat `TextDetDataSample`, `TextSpottingDataSample`, `TextRecogDataSample`, and `KIEDataSample` as the contract between models, postprocessors, metrics, and visualizers.
- Keep dictionary files, token settings, postprocessor ignore characters, and recognition label fields synchronized.
- For component-level debugging, verify imports, registry membership, sample field presence, and small synthetic inputs before using full datasets or checkpoints.

Files in this skill

  • SKILL.md2.9 KB
  • references/component-api-reference.md16.4 KB
  • references/extension-patterns.md11.6 KB
  • references/troubleshooting.md12.7 KB
  • scripts/mmocr_component_registry_probe.py9.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.