brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
encoders-preprocessingChoose segmentation_models_pytorch encoders/backbones, configure weights, and retrieve preprocessing parameters without relying on the source repository.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks how to choose an SMP encoder/backbone, list supported encoders, use tu- timm universal names, migrate deprecated timm- requests, choose a DPT-compatible encoder, or configure get_preprocessing_params / get_preprocessing_fn.
segmentation_models_pytorch.encoders.get_encoder_names() to list registry names and get_encoder(name, in_channels=3, depth=5, weights=None, output_stride=32, **kwargs) to instantiate the encoder directly.encoder_name=... and weights as encoder_weights=...; see ../model-building/SKILL.md for complete model recipes.get_preprocessing_params(encoder_name, pretrained="imagenet") when you need mean/std/input range as data, or get_preprocessing_fn(encoder_name, pretrained="imagenet") when you need a NumPy preprocessing callable.tu- prefix. The pretrained variant belongs in the encoder name, and encoder_weights / weights should be True to request pretrained timm weights or None for random/offline initialization.tu- ViT-like encoder names supported by the DPT architecture and route full model construction details to ../model-building/SKILL.md.tu- timm universal for broad timm coverage, or DPT-compatible tu- ViT-style names for smp.DPT.weights=None / encoder_weights=None for offline random initialization; use a native string such as "imagenet" only when downloads or cached configs are acceptable.depth and output_stride only when the model architecture expects them. Native encoders commonly produce depth + 1 feature maps including the input; timm universal supports depth up to 5 and may reject unsupported output strides.python sub-skills/encoders-preprocessing/scripts/check_encoder.py resnet34 --preprocessing-only
python sub-skills/encoders-preprocessing/scripts/check_encoder.py tu-resnet18 --weights none --depth 5
tu- naming, timm- migration, DPT caveats, depth, and output stride.get_preprocessing_params, get_preprocessing_fn, offline behavior, and data-shape caveats.../model-building/SKILL.md.../training-evaluation/SKILL.md.../model-export/SKILL.md.