算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
modeling-inference【设计与创意】Choose and wire MONAI networks, losses, metrics, inferers, postprocessing, visualization, and export-oriented model utilities for inference and evaluation primitives.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs MONAI model primitives: network selection, tensor shape conventions, segmentation losses, validation metrics, sliding-window inference, postprocessing, visualization, or model export caveats.
monai.networks, especially segmentation architectures such as UNet and transformer-style variants such as SwinUNETR.monai.losses, including activation and one-hot handling for binary, multi-class, and multi-label segmentation.monai.metrics, especially Dice and surface-distance style metrics that expect postprocessed predictions and reset/aggregate discipline.monai.inferers.sliding_window_inference or SlidingWindowInferer for volumes too large for one forward pass.Activationsd and AsDiscreted.../data-transforms/SKILL.md for data loading, preprocessing, metadata, MetaTensor, caching, decollation, and inverse transforms.../training-evaluation/SKILL.md for Ignite trainer/evaluator loops, handlers, checkpointing, AMP, and experiment logging.../bundle-config/SKILL.md for MONAI Bundle configuration, Bundle CLI run/verify/export commands, and packaged bundle workflows.../apps-auto3dseg/SKILL.md for Auto3DSeg and high-level application orchestration.references/workflows.md when choosing a network/loss/metric/inferer recipe or wiring postprocessing, visualization, and export-aware inference flow.references/api-reference.md when you need concise signatures, tensor shape contracts, or API-specific usage notes for core modeling primitives.references/troubleshooting.md when debugging channel/shape mismatches, activation or one-hot mistakes, metric lifecycle issues, sliding-window OOM/artifacts, optional export dependencies, or CPU/CUDA limitations.scripts/modeling_smoke.py --help to inspect the bundled validation script; run scripts/modeling_smoke.py to perform a tiny CPU-only smoke check of MONAI network, loss/metric, and sliding-window primitives.(batch, channels, spatial...); 3D segmentation commonly uses (B, C, H, W, D).DiceCELoss(to_onehot_y=True, softmax=True) during training and postprocess validation logits with Activationsd(softmax=True) followed by AsDiscreted(argmax=True, to_onehot=num_classes).DiceLoss(sigmoid=True) or DiceCELoss(sigmoid=True) and postprocess with sigmoid plus thresholding.roi_size in spatial dimensions only, reduce sw_batch_size before reducing ROI, and use device="cpu"/sw_device="cuda" only when you intentionally want stitched output on CPU.aggregate() and reset() for each validation epoch.