MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / heun_step

Function heun_step

src/framework/sampling/diffusion_math.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225std::vector<float> heun_step(
226 const std::vector<float> & x_before,
227 const std::vector<float> & velocity_first,
228 const std::vector<float> & velocity_second,
229 float dt) {
230 const std::vector<float> combined = heun_combine_velocity(velocity_first, velocity_second);
231 return euler_step(x_before, combined, dt);
232}
233
234std::vector<float> build_soft_mask(
235 const std::vector<int32_t> & mask,

Callers 2

generate_latentsMethod · 0.85
test_velocity_and_stepsFunction · 0.85

Calls 2

heun_combine_velocityFunction · 0.85
euler_stepFunction · 0.85

Tested by 1

test_velocity_and_stepsFunction · 0.68