Skip to content

Commit b5a479d

Browse files
committed
pipeline output class added
1 parent 138f1eb commit b5a479d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
from transformers import AutoTokenizer, GemmaTokenizer, GemmaTokenizerFast, Gemma3ForConditionalGeneration
2929
from tqdm.auto import tqdm
3030
import qwix
31-
32-
from ...utils import logging
33-
3431
from ...utils import logging
3532
from ...schedulers import FlaxFlowMatchScheduler
3633
from ...models.ltx2.autoencoder_kl_ltx2 import LTX2VideoAutoencoderKL
@@ -46,6 +43,11 @@
4643
from ... import max_utils
4744
from ...max_utils import get_flash_block_sizes, get_precision, device_put_replicated
4845

46+
@flax.struct.dataclass
47+
class LTX2PipelineOutput:
48+
frames: jax.Array
49+
audio: Optional[jax.Array] = None
50+
4951
logger = logging.get_logger(__name__)
5052

5153

0 commit comments

Comments
 (0)