协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
feature-extraction【开发与工程】Convert CLAM patch coordinate files into feature .h5 and .pt artifacts with ResNet50, UNI, or CONCH encoders.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about turning CLAM patch-coordinate .h5 files into slide-level feature bags, choosing resnet50_trunc, uni_v1, or conch_v1, setting checkpoint environment variables, or aligning downstream embed_dim values with extracted features.
../wsi-preprocessing/SKILL.md first..pt files and is configuring splits, training, evaluation, or model checkpoints, read ../training-evaluation/SKILL.md.../heatmap-visualization/SKILL.md.references/troubleshooting.md, then inspect the workflow or encoder reference that matches the symptom.references/workflows.md for the fast extract_features_fp.py workflow, required inputs, command syntax, output layout, and downstream data_root_dir expectations.references/encoder-reference.md to choose between resnet50_trunc, uni_v1, and conch_v1, including checkpoint variables, feature dimensions, and batch-size implications.references/legacy-pipeline.md only for older saved-patch .h5 projects that used extract_features.py instead of the current fast coordinate-based pipeline.references/troubleshooting.md to diagnose coordinate-file, csv_path, slide-extension, OpenSlide, checkpoint, auto-skip, batch-size, and embed_dim failures.scripts/clam_feature_command_builder.py before a heavy extraction job to validate safe CLI options and print an extract_features_fp.py command plus expected outputs without opening slides, loading checkpoints, or downloading weights.data_h5_dir/patches/<slide_id>.h5 exists from the fast CLAM patching workflow and contains coordinate data rather than saved image patches.csv_path has a slide_id column whose values match both coordinate files and slide files after applying --slide_ext.references/encoder-reference.md; set UNI_CKPT_PATH or CONCH_CKPT_PATH before using UNI or CONCH.extract_features_fp.py, then point downstream training/evaluation at the parent feature root described in references/workflows.md.