计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
preprocessing-and-loading【效率与协作】Apply Nitrain transforms, random augmentation, samplers, and loader batching workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.