pub struct LtxDit {
pub heads: usize,
pub dh: usize,
pub a_heads: usize,
pub a_dh: usize,
pub max_pos: Vec<f64>,
pub a_max_pos: Vec<f64>,
pub cross_max_pos: f64,
pub theta: f64,
pub t_scale: f64,
pub av_t_scale: f64,
pub audio_cross_dim: usize,
/* private fields */
}Fields§
§heads: usize§dh: usize§a_heads: usize§a_dh: usize§max_pos: Vec<f64>§a_max_pos: Vec<f64>§cross_max_pos: f64§theta: f64§t_scale: f64§av_t_scale: f64§audio_cross_dim: usizeImplementations§
Source§impl LtxDit
impl LtxDit
pub fn from_cmf(model: &Arc<CmfModel>) -> Result<LtxDit, String>
Sourcepub fn from_cmf_lora(
model: &Arc<CmfModel>,
bank: Option<&LoraBank>,
) -> Result<LtxDit, String>
pub fn from_cmf_lora( model: &Arc<CmfModel>, bank: Option<&LoraBank>, ) -> Result<LtxDit, String>
The same, with a runtime adapter bound to whichever projections it names. Reported once at load so a file that matched nothing says so instead of rendering as if it had.
pub fn blocks(&self) -> usize
pub fn container(&self) -> &Arc<CmfModel> ⓘ
Sourcepub fn forward(
&self,
video: &StreamInput,
audio: &StreamInput,
pool: Option<&Pool>,
) -> (Vec<f32>, Vec<f32>)
pub fn forward( &self, video: &StreamInput, audio: &StreamInput, pool: Option<&Pool>, ) -> (Vec<f32>, Vec<f32>)
One denoising step: (video velocity [T, C], audio velocity [T, C]).
pub fn forward_traced( &self, video: &StreamInput, audio: &StreamInput, pool: Option<&Pool>, trace: &mut dyn FnMut(&str, &[f32]), ) -> (Vec<f32>, Vec<f32>)
Auto Trait Implementations§
impl !Freeze for LtxDit
impl RefUnwindSafe for LtxDit
impl Send for LtxDit
impl Sync for LtxDit
impl Unpin for LtxDit
impl UnsafeUnpin for LtxDit
impl UnwindSafe for LtxDit
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