mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 12:06:35 +00:00
Prior denoising. (#889)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user