Skip to content
Back to skills

Core Apis

ASecurity

"Routes Mask_RCNN core API, Config, Dataset, MaskRCNN, utility,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
datapythonbashapibackend

Works with

  • 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 core-apis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Core Apis?

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

Security grade badge for Core Apis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-core-apis-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-core-apis-arex-skill)

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: core-apis
description: "Routes Mask_RCNN core API, Config, Dataset, MaskRCNN, utility,
  visualization, and TensorFlow/Keras compatibility tasks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Core APIs

Use this sub-skill when a task asks how to use or debug the installed `mrcnn` package itself: configuration classes, `MaskRCNN` construction, utility functions, visualization signatures, graph-building constraints, or legacy TensorFlow/Keras compatibility.

## Read first by need

- Read [api-reference.md](references/api-reference.md) for verified public signatures and object relationships.
- Read [compatibility.md](references/compatibility.md) before choosing TensorFlow/Keras versions or interpreting modern Keras errors.
- Read [troubleshooting.md](references/troubleshooting.md) when imports, graph construction, image dimensions, or API calls fail.
- Run [scripts/inspect_mask_rcnn_api.py](scripts/inspect_mask_rcnn_api.py) to inspect a user environment without requiring the original checkout.

## Core API workflow

1. Verify the runtime stack and import package:

   ```bash
   python sub-skills/core-apis/scripts/inspect_mask_rcnn_api.py --show-signatures
   ```

2. Define a `Config` subclass. Set at least `NAME`, `NUM_CLASSES`, image size/resize mode, `GPU_COUNT`, and `IMAGES_PER_GPU`. Dimensions that flow into the FPN should be divisible by 64.
3. Construct the model with a mode-specific object:

   ```python
   from mrcnn.config import Config
   from mrcnn import model as modellib

   class MyConfig(Config):
       NAME = "my_project"
       NUM_CLASSES = 1 + 1
       GPU_COUNT = 1
       IMAGES_PER_GPU = 1
       IMAGE_MIN_DIM = 512
       IMAGE_MAX_DIM = 512

   config = MyConfig()
   model = modellib.MaskRCNN(mode="inference", config=config, model_dir="logs")
   ```

4. For training, route to [training](../training/SKILL.md). For dataset subclasses and masks, route to [data-preparation](../data-preparation/SKILL.md). For `detect()` results and visualization, route to [inference-evaluation](../inference-evaluation/SKILL.md).

## Decision points

- **Using modern Keras?** Treat failures as compatibility/porting unless a full graph build and target workflow already pass. The legacy stack is the safer operating default.
- **CPU versus GPU?** CPU can validate imports, shapes, utilities, and tiny graphs. Real training and multi-GPU behavior need backend-specific runtime verification.
- **Weights mismatch?** Core API can explain `load_weights`; training owns the transfer-learning recipes and layer exclusions.
- **Original sample path requested?** Use bundled references/scripts instead. This repo skill is meant to operate without reopening the source checkout.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md4.4 KB
  • references/compatibility.md2.8 KB
  • references/troubleshooting.md1.8 KB
  • scripts/inspect_mask_rcnn_api.py3.2 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.