Thanks to the DiffSynth team: https://github.com/modelscope/DiffSynth-Studio/blob/main/diffsynth/models/hunyuan_video_dit.py#L630
Thanks to the DiffSynth team: https://github.com/modelscope/DiffSynth-Studio/blob/main/diffsynth/models/hunyuan_video_dit.py#L630