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
preprocessing-and-loadingApply Nitrain transforms, random augmentation, samplers, and loader batching workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a user needs to transform images, apply random
augmentation, sample slices or patches, or batch a dataset with Loader or
Loader.to_keras().
BaseSampler, SliceSampler, PatchSampler, BlockSampler, and
SlicePatchSampler.Loader, Loader.copy(), Loader.to_keras(), and the batch-shaping logic
that sits between a Dataset and a model.sub-skills/datasets-readers/.sub-skills/models-training/.sub-skills/prediction-and-explanation/.('inputs', 'outputs') when
the same operation must stay aligned.Loader after the dataset is already shaped the way the model expects.After installing dependencies, run the bundled helper scripts/check_install.py:
python scripts/check_install.py --mode preprocess
Use this when you want to confirm the transformation, sampler, and loader stack before model construction or prediction.
channels_first=True adds a channel axis in the loader; channels_first=None
disables the extra expansion.Loader.transforms applies after the dataset records are collected and before
the sampler emits batches.Astype, Smooth, Crop, Resample, Slice, PadImageMath, BiasCorrection, StandardNormalize, RangeNormalize, Clip,
QuantileClip, ThresholdAbs, Ceil, Floor, Log, Exp, Sqrt, PowerAddChannel, ReorientApplyAntsTransform, AffineTransform, Shear, Rotate, Zoom, Flip,
TranslateLabelsToChannelsCustomFunction, NumpyFunctionRandomCropRandomShear, RandomRotate, RandomZoom, RandomFlip, RandomTranslateBaseSampler for plain batchingSliceSampler for 2D slices from 3D volumesPatchSampler for 2D patchesBlockSampler for 3D blocksSlicePatchSampler for slice-then-patch workflowsLoader.__iter__() returns numpy batches with the expected channel layout.Loader.to_keras() returns a tf.data.Dataset-style object that Keras can
consume.Some names in your transform were not found means the transform key labels do
not match the dataset keys.images_per_batch larger than the dataset triggers a warning and is clipped
down to the dataset size.If the user actually needs architecture discovery, trainers, or prediction, hand off to the relevant sibling sub-skill instead of adding that logic here.