计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
embedding-losses-mining【效率与协作】Routes embedding-network, contrastive-loss, triplet-loss, and online mining tasks for the Siamese-triplet repository.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about the repository's embedding backbone, the siamese and triplet wrappers, the contrastive or triplet losses, or the pair/triplet selection helpers used for online mining.
EmbeddingNetEmbeddingNetL2ClassificationNetSiameseNetTripletNetContrastiveLossTripletLossOnlineContrastiveLossOnlineTripletLossPairSelector and TripletSelector implementationsRead this sub-skill for tasks that mention:
references/api-reference.md for shapes and return values.references/troubleshooting.md if a selector or loss returns empty results.scripts/check_losses_networks.py for a tiny no-download smoke.networks.py, losses.py, utils.py, README loss descriptions, and the notebook training cells.EmbeddingNet and verify that it maps 1×28×28 images to a 2D embedding.ClassificationNet, SiameseNet, or TripletNet depending on the downstream loss.ContrastiveLoss for pairwise same/different supervisionTripletLoss for explicit anchor/positive/negative supervisionOnlineContrastiveLoss or OnlineTripletLoss when mining pairs or triplets inside a mini-batchEmbeddingNetL2 if normalized embeddings are important.ClassificationNet only when the task is ordinary classification rather than metric learning.HardNegativePairSelector when you want the hardest negative pairs from a batch.OnlineTripletLoss returns (loss, num_triplets), which is easy to misuse if a caller expects a plain tensor.EmbeddingNetL2 divides by the norm without an epsilon guard.references/api-reference.md for the module and selector map.references/troubleshooting.md for CPU/GPU and empty-mining issues.../dataset-sampling/SKILL.md if the next step is a wrapper or sampler problem.../training-experiments/SKILL.md if the next step is a fit-loop or notebook workflow check.