技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
monai【数据与研究】Use MONAI, the PyTorch-based medical imaging AI toolkit, for data/transforms, modeling/inference, training/evaluation, Bundle configs, and Auto3DSeg/app workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task asks an agent to build, inspect, debug, or explain MONAI workflows for healthcare imaging with PyTorch. MONAI covers dictionary transforms, medical-image data loading, metadata-aware tensors, segmentation networks, losses, metrics, sliding-window inference, Ignite-style training/evaluation engines, Bundle configuration/CLI workflows, and high-level Auto3DSeg applications.
scripts/check_monai_environment.py --help, then scripts/check_monai_environment.py when you need import, version, optional dependency, and CLI signals.sub-skills/data-transforms/SKILL.md for monai.transforms, monai.data, medical-image IO, dictionary pipelines, MetaTensor, datalists, datasets, caches, dataloaders, inverse transforms, lazy resampling, and collation.sub-skills/modeling-inference/SKILL.md for monai.networks, losses, metrics, sliding-window inference, postprocessing, visualization, shape/channel contracts, and model primitive smoke checks.sub-skills/training-evaluation/SKILL.md for MONAI engines, Ignite handlers, validation, checkpointing, logging, optimizers, schedulers, AMP/distributed caveats, and trainer/evaluator debugging.sub-skills/bundle-config/SKILL.md for MONAI Bundle config syntax, ConfigParser, ConfigWorkflow, python -m monai.bundle, metadata/spec validation, CLI overrides, export commands, and copyable tiny bundle templates.sub-skills/apps-auto3dseg/SKILL.md for Auto3DSeg, DataAnalyzer, AutoRunner, BundleGen, ensemble/HPO generators, nnU-Net bridge guidance, and high-level app dataset helpers.references/installation-and-optional-dependencies.md before choosing install commands, extras, image-reader dependencies, Ignite, Bundle CLI dependencies, export packages, HPO packages, or CUDA/TensorRT paths.references/troubleshooting.md for package import failures, optional dependency errors, CPU/GPU mismatches, data/config validation failures, and when to route failures to a sub-skill.references/repo-provenance.md when deciding whether this skill still matches the MONAI checkout or package version.scripts/check_monai_environment.py to collect safe environment facts without downloads, training, credentials, or destructive writes.For normal users, start with the released package unless the task explicitly targets a local checkout:
pip install monai
python - <<'PY'
import monai, torch, numpy
print(monai.__version__)
print(torch.__version__)
print(numpy.__version__)
PY
Install optional extras only for the route that needs them. Examples: image readers may need nibabel, pydicom, pynrrd, pillow, itk, tifffile, or openslide; training engines need pytorch-ignite; Bundle CLIs need fire; export workflows may need onnx, onnxruntime, TensorRT/polygraphy, or Hugging Face packages; Auto3DSeg HPO may need nni or optuna.
download=True, Auto3DSeg training, HPO, nnU-Net jobs, TensorRT export, Hub push, or multi-GPU workflows unless the user explicitly asks and the environment/data are ready.(B, C, H, W) or (B, C, H, W, D).MetaTensor metadata, affine, decollation, and inverse transforms as first-class debugging signals rather than incidental details.prepare_batch, event handlers, metric reset/aggregate, checkpoint paths, and optional Ignite availability.