技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare and validate ISIC, BRATS, and custom 2D/3D image-segmentation data for the MedSegDiff dataset loaders.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a MedSegDiff run needs an input directory, a loader choice, or a diagnosis of missing/misaligned image and mask data. Data is not bundled with this skill; acquire it separately and keep the split directory layout described in data-formats.md.
ISICDataset; first resolve the source-code CSV-name versus
README CSV-name mismatch. See data-formats.md.BRATSDataset for full-volume tensors or
BRATSDataset3D for the repository's fixed 155 virtual slices per case.CustomDataset with images/*.png and masks/*.png.CustomDataset3D with paired NIfTI volumes and account
for its constructor and launcher integration caveat.Read api-reference.md before writing a caller or transform. Read troubleshooting.md when a constructor assertion, empty dataset, shape error, or unexpected tensor value appears. The bundled validator is a conservative layout check, not a replacement for loading every dataset-specific file:
python scripts/validate_dataset_layout.py DATA_ROOT --kind custom2d
python scripts/validate_dataset_layout.py SPLIT_ROOT --kind isic --mode Training
python scripts/validate_dataset_layout.py CASE_ROOT --kind brats --mode 3d
Before handing data to training or sampling, identify the exact loader and confirm its tuple contract, modality set, spatial crop/resize policy, and mask binarization policy. Do not silently repair filenames, pair lists by basename, or normalize medical volumes: those are behavior changes that require an explicit loader extension.
This sub-skill covers data discovery and loader behavior only. Route optimizer, checkpoint, training flags, sampling, and evaluation to the sibling skills.