pub struct Flux2VaeDecoder { /* private fields */ }Expand description
Decoder wrapper for Diffusers AutoencoderKLFlux2 as used by
MOSS-Image. Its denoiser emits 128 channels at a 16×-smaller grid;
Flux2 first restores the BatchNorm statistics, unpatches each four
channel group into a 2×2 spatial tile, optionally applies
post_quant_conv, and only then enters the ordinary decoder.
Keeping this wrapper beside VaeDecoder is intentional: Conv2d is
private implementation detail, while the staged image pipelines need the
exact Flux2 pre-decode contract without duplicating the decoder.
Implementations§
Source§impl Flux2VaeDecoder
impl Flux2VaeDecoder
Auto Trait Implementations§
impl Freeze for Flux2VaeDecoder
impl RefUnwindSafe for Flux2VaeDecoder
impl Send for Flux2VaeDecoder
impl Sync for Flux2VaeDecoder
impl Unpin for Flux2VaeDecoder
impl UnsafeUnpin for Flux2VaeDecoder
impl UnwindSafe for Flux2VaeDecoder
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