pub struct GenParams {
pub height: usize,
pub width: usize,
pub steps: usize,
pub guidance_scale: f32,
pub cfg_trunc_ratio: f32,
pub cfg_normalization: bool,
pub seed: u64,
pub system_prompt: Option<String>,
pub max_tokens: usize,
}Fields§
§height: usize§width: usize§steps: usize§guidance_scale: f32≤1 disables classifier-free guidance (single forward per step).
cfg_trunc_ratio: f32Fraction of steps that run with CFG; past it only cond runs.
cfg_normalization: boolRescale the guided prediction to the cond-branch norm per row.
seed: u64§system_prompt: Option<String>§max_tokens: usizeGemma prompt token cap (diffusers max_sequence_length).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenParams
impl RefUnwindSafe for GenParams
impl Send for GenParams
impl Sync for GenParams
impl Unpin for GenParams
impl UnsafeUnpin for GenParams
impl UnwindSafe for GenParams
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