std1.0.0-beta-7 SafeC docs

std :: ml::diffusion

Trait std::DenoiseModel

#include <std/ml/diffusion.h> source

trait DenoiseModel {
    &FloatTensor predict(const &FloatTensor x, float sigma);
}

A denoiser the order-2 solvers call at their midpoint: an eps-prediction model for dpm_solver_2_step, an x0-prediction one for dpm_solver_pp_2_step. Any struct with this method conforms.

Required methods

ยง&FloatTensor predict(const &FloatTensor x, float sigma)source