pub struct ZDefaults {
pub variant: String,
pub steps: usize,
pub guidance: f32,
pub shift: f32,
pub height: usize,
pub width: usize,
pub cfg_normalization: f32,
pub cfg_truncation: f32,
pub negative_prompt: String,
pub max_sequence_length: usize,
}Expand description
Per-model defaults stored in the container (zimage.config_json), so
the CLI needs no flags. Missing keys fall back to the Turbo recipe.
Fields§
§variant: String“turbo” or “base”.
steps: usize§guidance: f32§shift: f32§height: usize§width: usize§cfg_normalization: f320 = off; c > 0 clips ‖pred‖ to c·‖pos‖.
cfg_truncation: f32§negative_prompt: String§max_sequence_length: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZDefaults
impl RefUnwindSafe for ZDefaults
impl Send for ZDefaults
impl Sync for ZDefaults
impl Unpin for ZDefaults
impl UnsafeUnpin for ZDefaults
impl UnwindSafe for ZDefaults
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