pub struct VideoVae { /* private fields */ }Implementations§
Source§impl VideoVae
impl VideoVae
pub fn from_cmf(model: &Arc<CmfModel>) -> Result<Self, String>
Sourcepub fn decode(
&self,
z: &[f32],
t_lat: usize,
zh: usize,
zw: usize,
) -> (Vec<f32>, usize)
pub fn decode( &self, z: &[f32], t_lat: usize, zh: usize, zw: usize, ) -> (Vec<f32>, usize)
Normalized latents [z_channels, t_lat, zh, zw] → RGB in [0, 1],
[3, frames, zh·16, zw·16].
pub fn spatial_ratio(&self) -> usize
pub fn temporal_ratio(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for VideoVae
impl !UnwindSafe for VideoVae
impl Freeze for VideoVae
impl Send for VideoVae
impl Sync for VideoVae
impl Unpin for VideoVae
impl UnsafeUnpin for VideoVae
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