MCPcopy Create free account
hub / github.com/dome272/Diffusion-Models-pytorch / plot_images

Function plot_images

utils.py:9–14  ·  view source on GitHub ↗
(images)

Source from the content-addressed store, hash-verified

7
8
9def plot_images(images):
10 plt.figure(figsize=(32, 32))
11 plt.imshow(torch.cat([
12 torch.cat([i for i in images.cpu()], dim=-1),
13 ], dim=-2).permute(1, 2, 0).cpu())
14 plt.show()
15
16
17def save_images(images, path, **kwargs):

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected