技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-and-training【数据与研究】Route U-2-Net dataset validation, transform inspection, and safe retraining preparation without starting long training by default.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about U-2-Net training data layout, preprocessing transforms, batch/sample fields, the multi-side BCE training loop, or preparing a safe retraining run.
scripts/validate_training_layout.py before discussing a training launch.scripts/inspect_data_pipeline.py to confirm RescaleT/ToTensorLab-like output shapes and ranges.Do not start the full training loop by default. The source loop is configured for epoch_num=100000 and data-dependent long execution; require explicit user approval and a bounded run plan first.
train_data/DUTS/DUTS-TR/DUTS-TR/im_aug/*.jpg with matching masks under train_data/DUTS/DUTS-TR/DUTS-TR/gt_aug/*.png by the same filename stem.SalObjDataset yields sample dictionaries with imidx, image, and label keys; training composes RescaleT(320), RandomCrop(288), and ToTensorLab(flag=0).model_name='u2net', batch_size_train=12, Adam learning rate 0.001, checkpoint save frequency 2000 iterations, and summed BCE losses across seven side outputs.model_name can be changed to u2netp; keep checkpoint paths and model constructor consistent with that choice.salient-object-inference.portrait-workflows.model-architecture.