mirror of
https://github.com/vladmandic/automatic
synced 2026-08-29 16:41:01 +02:00
cfdce99957
The VP update formula uses lambda=sigma/alpha which blows up to ~1e8 for flow matching (where alpha=1-sigma approaches 0). This makes r_fn=fn(next)/fn(curr) collapse to ~0, causing the sampler to discard the previous sample and independently re-predict x0 at each step. Set alpha=1 and lambda=sigma for flow matching so the VP formula naturally reduces to the correct form r_f*x + (1-r_f)*x0 with lambda in [0,1] where the noise function produces meaningful ratios.