pub struct AnimParams {
pub width: usize,
pub height: usize,
pub frames: usize,
pub steps: usize,
pub seed: u64,
pub stock_sampler: bool,
pub max_tokens: usize,
pub first_frame: Option<(Vec<f32>, usize, usize)>,
pub last_frame: Option<(Vec<f32>, usize, usize)>,
}Fields§
§width: usize§height: usize§frames: usizeFrames at 24 fps; snapped up to the model’s 17k+5 grid.
steps: usize§seed: u64§stock_sampler: boolIntegrate the audio on the video’s grid, as a stock sampler would. Wrong at four steps; kept for A/B.
max_tokens: usize§first_frame: Option<(Vec<f32>, usize, usize)>RGB in [0, 1] as [3, h, w] with its size — the clip’s first
frame, and/or its last.
last_frame: Option<(Vec<f32>, usize, usize)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnimParams
impl RefUnwindSafe for AnimParams
impl Send for AnimParams
impl Sync for AnimParams
impl Unpin for AnimParams
impl UnsafeUnpin for AnimParams
impl UnwindSafe for AnimParams
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