pub struct Conditioning {
pub video_mask: Vec<f32>,
pub video_clean: Vec<f32>,
pub audio_mask: Vec<f32>,
pub audio_clean: Vec<f32>,
}Expand description
What is held fixed while the rest is denoised. mask[t] = 0 freezes
token t at clean[t] and hands the transformer a timestep of zero for
it — which is how one encoded image becomes the first frame of a
generated shot, and how a whole encoded clip becomes the picture a
soundtrack is written for.
Fields§
§video_mask: Vec<f32>§video_clean: Vec<f32>§audio_mask: Vec<f32>§audio_clean: Vec<f32>Implementations§
Source§impl Conditioning
impl Conditioning
Sourcepub fn video_prefix(
geo: &Geometry,
clean: &[f32],
frames: usize,
) -> Conditioning
pub fn video_prefix( geo: &Geometry, clean: &[f32], frames: usize, ) -> Conditioning
Freeze the first frames latent frames at clean (patchified).
Sourcepub fn video_all(geo: &Geometry, clean: &[f32]) -> Conditioning
pub fn video_all(geo: &Geometry, clean: &[f32]) -> Conditioning
Freeze the whole video stream — the picture is given, the sound is what is being generated.
Sourcepub fn with_audio_all(self, geo: &Geometry, clean: &[f32]) -> Conditioning
pub fn with_audio_all(self, geo: &Geometry, clean: &[f32]) -> Conditioning
Freeze the whole soundtrack — the sound is given, the picture is what is being generated.
Trait Implementations§
Source§impl Clone for Conditioning
impl Clone for Conditioning
Source§fn clone(&self) -> Conditioning
fn clone(&self) -> Conditioning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Conditioning
impl Default for Conditioning
Source§fn default() -> Conditioning
fn default() -> Conditioning
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Conditioning
impl RefUnwindSafe for Conditioning
impl Send for Conditioning
impl Sync for Conditioning
impl Unpin for Conditioning
impl UnsafeUnpin for Conditioning
impl UnwindSafe for Conditioning
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