协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
pipeline-composition【开发与工程】Build, edit, validate, seed, and debug Albumentations augmentation pipelines with Compose and composition combinators.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent needs to assemble or modify an Albumentations pipeline, reason about pipeline-level validation, or debug pipeline randomness and target routing.
A.Compose / A.ReplayCompose pipelines around existing transforms.OneOf, SomeOf, RandomOrder, Sequential, OneOrOther, and SelectiveChannelTransform.strict, is_check_shapes, additional_targets, mask_interpolation, seed, or save_applied_params on a pipeline.+, left-+, or - while preserving compose configuration.../transform-catalog/.../targets-and-formats/.../serialization-and-reproducibility/.../framework-integration/.references/composition-api.md: API signatures, composition semantics, validation options, seed behavior, target routing, operator edits, and worked examples.references/troubleshooting.md: Symptom-driven fixes for invalid keys, mismatched shapes, single-transform warnings, missing labels, seed confusion, operator failures, and mask interpolation issues.scripts/check_pipeline_contract.py: A tiny self-contained checker that exercises strict keys, shape checks, additional depth targets, mask interpolation propagation, operator metadata preservation, and seed independence from global NumPy seeding.Prefer an explicit, strict top-level Compose while developing, then relax only the checks that are intentionally incompatible with the data:
import albumentations as A
pipeline = A.Compose(
[
A.Resize(256, 256, p=1),
A.OneOf([A.HorizontalFlip(p=1), A.VerticalFlip(p=1)], p=0.5),
],
additional_targets={"depth": "mask"},
is_check_shapes=True,
strict=True,
mask_interpolation=0,
seed=137,
save_applied_params=True,
)
result = pipeline(image=image, mask=mask, depth=depth)
Keep Compose calls keyword-only: use pipeline(image=image, mask=mask), not pipeline(image).