技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
classification【数据与研究】Route and operate PaddleViT image-classification workflows across standalone model directories, shared configuration/data/train/eval surfaces, checkpoint and AMP handling, and the facial-expression Swin variant.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route for image-level classification in PaddleViT: choose a model family, validate a config and ImageNet-style data layout, build a model, load a checkpoint, evaluate, fine-tune, or decide whether AMP/distributed training is appropriate. Use it also for the repository's Swin-based ABAW facial-expression workflow.
config.py, model
module, datasets.py, and main script together: PaddleViT is a collection
of standalone projects, not an installable Python package.This sub-skill owns supervised classification across ViT, DeiT, SwinTransformer, VOLO, CSwin, PVTv2, BEiT, MobileViT, ViP, XCiT, PiT, HaloNet, PoolFormer, BoTNet, CvT, HVT, TopFormer, ConvNeXt, CoaT, ResT/ResTV2, MLP-Mixer, ResMLP, gMLP, FF_Only, RepMLP, CycleMLP, ConvMixer, ConvMLP, RepLKNet, MobileOne, and MAE fine-tuning/import surfaces. It preserves the same operating conventions for related catalog folders when a task names one, but requires that folder's own README/config/module before asserting a builder or CLI detail.
MAE masked pretraining is not ordinary supervised classification; this route
covers its classifier fine-tuning surface and safe config/model inspection. The
facial-expression variant has aligned face frames and ABAW annotations, plus
all, coarse, and negative label mappings; it is not an ImageNet2012
list-file workflow.
../deployment-and-operations/SKILL.md.Run a chosen model from its own source directory or put only that directory
first on PYTHONPATH; several folders reuse bare module names such as
config, datasets, and utils. Importing multiple directories in one
interpreter can silently load the wrong module; use a fresh process per model.
The bundled scripts deliberately do not use this source-root import convention:
they are safe standalone checks.
The verified inspection environment contains PaddlePaddle GPU 2.6.2, yacs
0.1.8, and PyYAML. The repository documents older PaddlePaddle 2.1-era APIs,
so a per-family source/API smoke is required before claiming current-runtime
compatibility. The observed default ViT fact is vit.build_vit(config) with a
[1, 1000] output on gpu:0; it is a shape/import fact only.
Report the selected source-root directory, config and data/checkpoint paths, model builder, preprocessing contract, device/AMP/distributed choice, checks run, and unresolved incompatibilities. Never include machine-specific activation commands or private environment paths in a downstream handoff.