pub enum Solver {
Euler,
EulerAncestral,
DpmPlusPlus2m,
}Expand description
How one step of the loop is taken.
The schedule says where the noise levels are; the solver says how to move between two of them. All three read the model once per step, so the choice costs nothing but arithmetic.
Variants§
Euler
One Euler step per level, which is the schedule’s own rule. What the distilled models are tuned for.
EulerAncestral
Euler with part of each step’s noise put back, which is what “ancestral” means. It gives more variation between seeds and needs more steps to settle.
DpmPlusPlus2m
DPM++ 2M: a second-order multistep solver that reuses the previous step’s prediction rather than reading the model twice, so a step costs what an Euler step costs. It reaches a usable image in fewer steps, which is what a guided model is usually run with.
Trait Implementations§
impl Copy for Solver
impl Eq for Solver
impl StructuralPartialEq for Solver
Auto Trait Implementations§
impl Freeze for Solver
impl RefUnwindSafe for Solver
impl Send for Solver
impl Sync for Solver
impl Unpin for Solver
impl UnsafeUnpin for Solver
impl UnwindSafe for Solver
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,
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