技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
2d-workflows【数据与研究】Use for StarDist 2D workflows: Config2D data contracts, training handoff, pretrained or local StarDist2D inference, normalization and axes, dense or sparse prediction, scaling, tiling, multiclass prediction, shape completion, threshold tuning, and block-wise large-image prediction.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill to prepare, train, load, diagnose, or run a 2D
StarDist2D model. Keep the image/label contract, model configuration,
normalization policy, and prediction parameters together in the handoff.
This route targets StarDist 0.9.2 at commit e80c6de700693bc228ed3c9ba1dc19c3785667ee. Its required baseline is CPU TensorFlow 2.x plus compiled CPU StarDist extensions. Network/model downloads, OpenCL/gputools, CUDA, and external integrations are optional and must be explicit.
n_classes is not None or
each detected object needs a class.n_tiles, scale, chunked
output, or predict_instances_big.Use evaluation-geometry for standalone
geometry/NMS/matching. Use
deployment-integration for console,
BioImage.IO, ROI, Fiji, and QuPath work. Do not use this sub-skill for 3D model
or ray selection. A ZYX/ZYXC volume is not a 2D image; select and document a
plane as YX/YXC, or use 3d-workflows.
YX or channel-last
YXC; labels are integer YX, background 0, and positive instance ids.model.config.axes, n_channel_in, n_rays, grid, and
n_classes. Never treat a successfully constructed untrained model as a
substitute for failed pretrained/local weight loading.normalizer=None means already normalized; either
supply normalized float data or a compatible csbdeep.data.Normalizer and
record its statistics/channel policy.sparse=True. Use dense mode only for
full maps/diagnostics; return_predict=True forces dense mode. Record
probability/NMS thresholds, scale, and one tile count per input axis.n_tiles to predict_instances_big. Big
prediction additionally requires measured object-size bounds, sufficient
context, grid-compatible blocks, and
min_overlap + 2*context < block_size.Native evidence was distilled from relative repository paths:
stardist/models/model2d.py, stardist/models/base.py,
stardist/models/__init__.py, stardist/big.py, stardist/data/__init__.py,
README.md, the examples/2D/ and relevant examples/other2D/ notebooks, and
tests/test_model2D.py, tests/test_stardist2D.py, tests/test_big.py,
tests/test_utils.py, plus their 2D fixtures/loaders. These paths are evidence,
not runtime dependencies; the bundled operating files do not import repository
examples or tests.