mmaudio_synchformer ¶
Synchformer visual conditioner used by MMAudio.
The MotionFormer implementation is shared with FastVideo's existing audio/video synchronization evaluator. This production adapter deliberately owns only the visual feature extractor used by MMAudio, so its state-dict and forward numerics match the official Synchformer module without carrying the evaluator's unused audio and classification heads.
Classes¶
fastvideo.models.encoders.mmaudio_synchformer.MMAudioSynchformerVisualEncoder ¶
Bases: ImageEncoder
Extract temporal synchronization tokens from 25 FPS video frames.
Source code in fastvideo/models/encoders/mmaudio_synchformer.py
Methods:¶
fastvideo.models.encoders.mmaudio_synchformer.MMAudioSynchformerVisualEncoder.forward ¶
Encode contiguous [B, T, 3, 224, 224] 25 FPS frames.
Source code in fastvideo/models/encoders/mmaudio_synchformer.py
fastvideo.models.encoders.mmaudio_synchformer.MMAudioSynchformerVisualEncoder.forward_segmented ¶
Encode [B, S, 16, 3, 224, 224] frame segments.