计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
dual_contrastive_loss【效率与协作】Compute and inspect a DCL-style contrastive proxy loss with same-latent positives and real-target anti-collapse negatives.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery needs a deterministic feature-level version of the paper's DCL objective. It accepts a latent-paired batch and produces an InfoNCE-like scalar loss plus mechanism checks. Do not use it as a replacement for full StyleGAN training when full models are available.
latent_pair_protocol.Run python tests/test_dual_contrastive_loss.py from this skill directory.
The script uses small numeric vectors and standard-library math; it preserves objective structure but not neural feature extraction.
A shuffled-positive stress check should produce higher loss than aligned same-latent positives; see cycle1_shuffled_stress.json in recovery logs.