Prior denoising. (#889)

This commit is contained in:
Laurent Mazare
2023-09-18 16:51:38 +01:00
committed by GitHub
parent 5082954c52
commit 82a98f6da0
2 changed files with 25 additions and 5 deletions

View File

@ -38,6 +38,10 @@ impl DDPMWScheduler {
})
}
pub fn timesteps(&self) -> &[f64] {
&self.timesteps
}
fn alpha_cumprod(&self, t: f64) -> f64 {
let scaler = self.config.scaler;
let s = self.config.s;