executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trainingGuides Mask_RCNN training, fine-tuning, weights, checkpoints, layer selection, schedules, callbacks, and backend constraints.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks to train, fine-tune, resume, configure, or troubleshoot Matterport Mask_RCNN training on COCO, Balloon/VIA, Nucleus, Shapes, or a custom instance segmentation dataset.
Prepare training and validation datasets with data-preparation. Both datasets must be loaded and prepare() must be called.
Define a training Config with the correct NUM_CLASSES, image sizes, STEPS_PER_EPOCH, VALIDATION_STEPS, and memory-aware GPU_COUNT/IMAGES_PER_GPU.
Build the model:
from mrcnn import model as modellib
model = modellib.MaskRCNN(mode="training", config=config, model_dir="logs")
Load initial weights. For COCO-to-custom transfer, exclude class-specific heads.
Train heads first, then optionally deeper ResNet/FPN layers:
model.train(dataset_train, dataset_val,
learning_rate=config.LEARNING_RATE,
epochs=30,
layers="heads")
model.train(dataset_train, dataset_val,
learning_rate=config.LEARNING_RATE / 10,
epochs=60,
layers="all")
Validate by building an inference config and routing detection/evaluation to inference-evaluation.
NUM_CLASSES = 1 + foreground_count and exclude final heads when loading COCO weights.layers="heads"; use augmentation carefully; freeze batch norm unless you have large batches.GPU_COUNT > 1.