pub struct DDPMSchedulerConfig {
pub beta_start: f64,
pub beta_end: f64,
pub beta_schedule: BetaSchedule,
pub clip_sample: bool,
pub variance_type: DDPMVarianceType,
pub prediction_type: PredictionType,
pub train_timesteps: usize,
}
Fields§
§beta_start: f64
The value of beta at the beginning of training.
beta_end: f64
The value of beta at the end of training.
beta_schedule: BetaSchedule
How beta evolved during training.
clip_sample: bool
Option to predicted sample between -1 and 1 for numerical stability.
variance_type: DDPMVarianceType
Option to clip the variance used when adding noise to the denoised sample.
prediction_type: PredictionType
prediction type of the scheduler function
train_timesteps: usize
number of diffusion steps used to train the model.
Trait Implementations§
source§impl Clone for DDPMSchedulerConfig
impl Clone for DDPMSchedulerConfig
source§fn clone(&self) -> DDPMSchedulerConfig
fn clone(&self) -> DDPMSchedulerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DDPMSchedulerConfig
impl Debug for DDPMSchedulerConfig
Auto Trait Implementations§
impl Freeze for DDPMSchedulerConfig
impl RefUnwindSafe for DDPMSchedulerConfig
impl Send for DDPMSchedulerConfig
impl Sync for DDPMSchedulerConfig
impl Unpin for DDPMSchedulerConfig
impl UnwindSafe for DDPMSchedulerConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more