MCPcopy Create free account
hub / github.com/NVlabs/DiffPure / load_data

Function load_data

guided_diffusion/image_datasets.py:19–75  ·  view source on GitHub ↗

For a dataset, create a generator over (images, kwargs) pairs. Each images is an NCHW float tensor, and the kwargs dict contains zero or more keys, each of which map to a batched Tensor of their own. The kwargs dict can be used for class labels, in which case the key is "y" and

(
    *,
    data_dir,
    batch_size,
    image_size,
    class_cond=False,
    deterministic=False,
    random_crop=False,
    random_flip=True,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

ImageDatasetClass · 0.70

Tested by

no test coverage detected