and convert to audio.

encode

<
source
>
(
images: typing.List[PIL.Image.Image]
steps: int = 50

)
→
np.ndarray

Parameters 

images (List[PIL Image]) — list of images to encode


steps (int) — number of encoding steps to perform (defaults to 50)


Returns

np.ndarray



noise tensor of shape (batch_size, 1, height, width)


Reverse step process: recover noisy image from generated image.

get_default_steps

<
source
>
(
)
→
int

Returns

int

