技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
conditional_ot_paths【数据与研究】Construct and validate Flow Matching conditional optimal-transport paths and target vector fields for paired noise/data samples.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation needs the paper's conditional optimal-transport path from a base sample x0 to a data sample x1 and the corresponding regression target for Conditional Flow Matching. Do not use it to train a neural network or integrate a CNF; those are separate contracts.
x0 and x1.t in [0, 1].sigma_min in (0, 1] for the OT variance schedule.x_t = (1 - (1 - sigma_min)t) x0 + t x1.u_t = x1 - (1 - sigma_min) x0.scripts/ot_paths.py to compute x_t, u_t, and diagnostics.u_t as the target for a vector-field regressor; do not modify it with downstream loss weighting.Run:
python tests/test_ot_paths.py
python scripts/ot_paths.py --x0 '[0, 1]' --x1 '[2, 3]' --t 0.5
This skill implements the deterministic Gaussian OT-path formulas used for fast proxy validation. It does not estimate marginal vector fields or train image-scale models.
Cycle refinement: invalid times must fail before any recovery harness consumes the path sample.