# ... inference code ...
```  
Alternatively, the pipeline can be used to load the weights with [`~FromSingleFileMixin.from_single_file`].  
```python
import torch
from diffusers import LTXImageToVideoPipeline
from transformers import T5EncoderModel, T5Tokenizer