Struct candle_transformers::models::stable_diffusion::euler_ancestral_discrete::EulerAncestralDiscreteSchedulerConfig
source · pub struct EulerAncestralDiscreteSchedulerConfig {
pub beta_start: f64,
pub beta_end: f64,
pub beta_schedule: BetaSchedule,
pub steps_offset: usize,
pub prediction_type: PredictionType,
pub train_timesteps: usize,
pub timestep_spacing: TimestepSpacing,
}
Expand description
The configuration for the EulerAncestral Discrete scheduler.
Fields§
§beta_start: f64
The value of beta at the beginning of training.n
beta_end: f64
The value of beta at the end of training.
beta_schedule: BetaSchedule
How beta evolved during training.
steps_offset: usize
Adjust the indexes of the inference schedule by this value.
prediction_type: PredictionType
prediction type of the scheduler function, one of epsilon
(predicting
the noise of the diffusion process), sample
(directly predicting the noisy sample) or
v_prediction` (see section 2.4 https://imagen.research.google/video/paper.pdf)
train_timesteps: usize
number of diffusion steps used to train the model
timestep_spacing: TimestepSpacing
time step spacing for the diffusion process
Trait Implementations§
source§impl Clone for EulerAncestralDiscreteSchedulerConfig
impl Clone for EulerAncestralDiscreteSchedulerConfig
source§fn clone(&self) -> EulerAncestralDiscreteSchedulerConfig
fn clone(&self) -> EulerAncestralDiscreteSchedulerConfig
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 moreimpl Copy for EulerAncestralDiscreteSchedulerConfig
Auto Trait Implementations§
impl Freeze for EulerAncestralDiscreteSchedulerConfig
impl RefUnwindSafe for EulerAncestralDiscreteSchedulerConfig
impl Send for EulerAncestralDiscreteSchedulerConfig
impl Sync for EulerAncestralDiscreteSchedulerConfig
impl Unpin for EulerAncestralDiscreteSchedulerConfig
impl UnwindSafe for EulerAncestralDiscreteSchedulerConfig
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