pub struct UniPCSchedulerConfig {
pub corrector: CorrectorConfiguration,
pub sigma_schedule: SigmaSchedule,
pub timestep_schedule: TimestepSchedule,
pub solver_order: usize,
pub prediction_type: PredictionType,
pub num_training_timesteps: usize,
pub thresholding: bool,
pub dynamic_thresholding_ratio: f64,
pub sample_max_value: f64,
pub solver_type: SolverType,
pub lower_order_final: bool,
}Fields§
§corrector: CorrectorConfigurationConfigure the UNIC corrector. By default it is disabled
sigma_schedule: SigmaScheduleDetermines how sigma relates to a given timestep
timestep_schedule: TimestepScheduleDetermines the points
solver_order: usizeThe solver order which can be 1 or higher. It is recommended to use solver_order=2 for guided
sampling, and solver_order=3 for unconditional sampling.
prediction_type: PredictionTypePrediction type of the scheduler function
num_training_timesteps: usize§thresholding: boolWhether to use the “dynamic thresholding” method. This is unsuitable for latent-space diffusion models such as Stable Diffusion.
dynamic_thresholding_ratio: f64The ratio for the dynamic thresholding method. Valid only when thresholding=True.
sample_max_value: f64The threshold value for dynamic thresholding.
solver_type: SolverType§lower_order_final: boolWhether to use lower-order solvers in the final steps.
Trait Implementations§
Source§impl Clone for UniPCSchedulerConfig
impl Clone for UniPCSchedulerConfig
Source§fn clone(&self) -> UniPCSchedulerConfig
fn clone(&self) -> UniPCSchedulerConfig
Returns a duplicate 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 UniPCSchedulerConfig
impl Debug for UniPCSchedulerConfig
Source§impl Default for UniPCSchedulerConfig
impl Default for UniPCSchedulerConfig
Auto Trait Implementations§
impl Freeze for UniPCSchedulerConfig
impl RefUnwindSafe for UniPCSchedulerConfig
impl Send for UniPCSchedulerConfig
impl Sync for UniPCSchedulerConfig
impl Unpin for UniPCSchedulerConfig
impl UnwindSafe for UniPCSchedulerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more