".github/vscode:/vscode.git/clone" did not exist on "81eba3912f2453debda16d0c73e94940b2cc30f0"
pipeline_output.py 729 Bytes
Newer Older
Aryan V S's avatar
Aryan V S committed
1
2
3
4
5
6
7
8
9
10
11
12
13
from dataclasses import dataclass
from typing import List, Union

import numpy as np
import PIL.Image
import torch

from ...utils import BaseOutput


@dataclass
class AnimateDiffPipelineOutput(BaseOutput):
    r"""
14
     Output class for AnimateDiff pipelines.
Aryan V S's avatar
Aryan V S committed
15

16
    Args:
17
         frames (`torch.Tensor`, `np.ndarray`, or List[List[PIL.Image.Image]]):
18
19
             List of video outputs - It can be a nested list of length `batch_size,` with each sub-list containing
             denoised
20
21
     PIL image sequences of length `num_frames.` It can also be a NumPy array or Torch tensor of shape
    `(batch_size, num_frames, channels, height, width)`
Aryan V S's avatar
Aryan V S committed
22
23
    """

24
    frames: Union[torch.Tensor, np.ndarray, List[List[PIL.Image.Image]]]