pub struct Ltx2OutputRung {
pub id: &'static str,
pub label: &'static str,
pub width: u32,
pub height: u32,
}Expand description
One rung of the LTX-2 output ladder.
A rung is an output shape plus the composition that reaches it. Every entry
is 64-aligned so stage 1 — the target halved — still lands on the VAE’s
32 px latent grid, which is upstream’s own divisor = 64 if is_two_stage
rule (packages/ltx-pipelines/src/ltx_pipelines/utils/helpers.py:326).
Fields§
§id: &'static strStable identifier, safe to persist and to match on.
label: &'static strHuman-readable name for pickers and errors.
width: u32§height: u32Implementations§
Source§impl Ltx2OutputRung
impl Ltx2OutputRung
Sourcepub const fn stage1_shape(&self) -> (u32, u32)
pub const fn stage1_shape(&self) -> (u32, u32)
Shape stage 1 renders at under one x2 spatial rung.
Mirrors derive_stage1_render_shape / latent_grid_downsample: the
target’s latent grid is halved with ceiling division, then expanded
back to pixels. advertised_rungs_match_the_engines_own_arithmetic in
mold-inference pins this to the engine’s own arithmetic — this crate
cannot see it, and a rung that names a stage-1 shape the engine does not
render is worse than naming none.
Sourcepub const fn requires_tiled_stage2(&self) -> bool
pub const fn requires_tiled_stage2(&self) -> bool
Whether this rung needs the tiled stage-2 refinement, i.e. whether it has an axis past the span a single denoise can hold.
Sourcepub const fn stage2_tiles(&self) -> (u32, u32)
pub const fn stage2_tiles(&self) -> (u32, u32)
Spatial tiles stage 2 splits into, as (columns, rows).
Mirrors plan_stage2_tiling: an axis inside the trained span stays
whole, and an oversized one is split into the fewest tiles whose every
tile fits. Pinned to the engine by
advertised_rungs_match_the_engines_own_arithmetic.
Trait Implementations§
Source§impl Clone for Ltx2OutputRung
impl Clone for Ltx2OutputRung
Source§fn clone(&self) -> Ltx2OutputRung
fn clone(&self) -> Ltx2OutputRung
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Ltx2OutputRung
Source§impl Debug for Ltx2OutputRung
impl Debug for Ltx2OutputRung
impl Eq for Ltx2OutputRung
Source§impl PartialEq for Ltx2OutputRung
impl PartialEq for Ltx2OutputRung
impl StructuralPartialEq for Ltx2OutputRung
Auto Trait Implementations§
impl Freeze for Ltx2OutputRung
impl RefUnwindSafe for Ltx2OutputRung
impl Send for Ltx2OutputRung
impl Sync for Ltx2OutputRung
impl Unpin for Ltx2OutputRung
impl UnsafeUnpin for Ltx2OutputRung
impl UnwindSafe for Ltx2OutputRung
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.