pub struct SamplingConfig {
pub steps: usize,
pub solver: Solver,
pub guidance: f32,
pub seed: Option<u64>,
}Expand description
How a run is set up: how many steps, how strongly to follow the prompt, and where the starting noise comes from.
Fields§
§steps: usize§solver: SolverHow one step is taken. Euler unless a model asks for more.
guidance: f32Classifier-free guidance scale. 1.0 is off, and it stays off unless the
model implements Denoiser::denoise_unconditional. A distilled model
wants it off; an SDXL-style model wants 5.0 to 8.0.
seed: Option<u64>Trait Implementations§
Source§impl Clone for SamplingConfig
impl Clone for SamplingConfig
impl Copy for SamplingConfig
Source§impl Debug for SamplingConfig
impl Debug for SamplingConfig
Source§impl Default for SamplingConfig
impl Default for SamplingConfig
Source§impl PartialEq for SamplingConfig
impl PartialEq for SamplingConfig
impl StructuralPartialEq for SamplingConfig
Auto Trait Implementations§
impl Forget for SamplingConfig
impl Freeze for SamplingConfig
impl Move for SamplingConfig
impl RefUnwindSafe for SamplingConfig
impl Send for SamplingConfig
impl Sync for SamplingConfig
impl Unpin for SamplingConfig
impl UnsafeUnpin for SamplingConfig
impl UnwindSafe for SamplingConfig
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