计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
linear_calibration_ranking【效率与协作】Fit non-negative layer calibration weights for LPIPS-style distances using bounded 2AFC ranking feedback.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or evaluation needs to apply or fit the LPIPS paper's shallow human-judgment calibration over per-layer distances.
Do not use it to train or fine-tune a trunk network. This skill updates only calibration weights.
layers0, layers1, and judge.layers0 and layers1 are equal-length lists of per-layer distances for ref-p0 and ref-p1.judge = 0 means p0 should score closer; judge = 1 means p1 should score closer.params_before and params_after for recovery validation.score0 - score1.Run:
python scripts/calibrate_ranking.py --self-test
python tests/test_calibrate_ranking.py
The script is intentionally small and deterministic. It is suitable for reduced recovery and unit tests, not full-scale LPIPS training.