协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
model-library【开发与工程】Discover timm model names, instantiate models, load pretrained or local weights, adapt heads/input channels/pooling, inspect pretrained configs, extract features, and debug model registry or weight-loading issues.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks an agent to choose or instantiate a timm architecture, enumerate available models or pretrained tags, load weights, adapt classification heads or input channels, inspect model defaults, extract feature maps, or troubleshoot model creation and pretrained loading.
import timm, then use timm.list_models, timm.list_pretrained, timm.get_pretrained_cfg, and timm.create_model.timm.create_model(name, pretrained=False) and run a small random forward pass.list_models(filter='*resnet*') for architecture discovery and list_pretrained(filter='*resnet*') for exact architecture.tag pretrained identifiers.create_model(model_name, pretrained=False, pretrained_cfg=None, pretrained_cfg_overlay=None, checkpoint_path=None, cache_dir=None, scriptable=None, exportable=None, no_jit=None, **kwargs).num_classes, in_chans, global_pool, features_only, out_indices, output_stride, scriptable, exportable, and no_jit.model.pretrained_cfg or timm.get_pretrained_cfg(model_name).to_dict() before choosing transforms, class counts, input channels, or cache/download behavior.references/api-reference.md.references/model-workflows.md.references/troubleshooting.md.python sub-skills/model-library/scripts/model_smoke_check.py --model resnet18 --num-classes 7 from the skill root or copy the script into a project.../data-pipelines/ for transforms, loaders, resolve_data_config, augmentation, and preprocessing pipelines after reading pretrained_cfg here.../training-workflows/ for optimizers, schedulers, losses, training loops, fine-tuning scripts, and distributed training.../export-and-interoperability/ for ONNX, TorchScript export flows, checkpoint conversion tools, Hugging Face push/pull packaging, and deployment formats.../layers-and-components/ for low-level timm layers, blocks, activations, pooling modules, and component internals.pretrained=True in smoke checks unless downloads, cache location, and Hugging Face authentication are expected and acceptable.list_models() have pretrained weights; use list_pretrained() or is_model_pretrained() when weights matter.pretrained_cfg and route preprocessing details to data-pipelines.features_only=True returns the same number of feature levels for every model family; inspect model.feature_info.channels() and model.feature_info.reduction().