MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / create_dataset

Function create_dataset

pix2pix/data/__init__.py:47–59  ·  view source on GitHub ↗

Create a dataset given the option. This function wraps the class CustomDatasetDataLoader. This is the main interface between this package and 'train.py'/'test.py' Example: >>> from data import create_dataset >>> dataset = create_dataset(opt)

(opt)

Source from the content-addressed store, hash-verified

45
46
47def create_dataset(opt):
48 """Create a dataset given the option.
49
50 This function wraps the class CustomDatasetDataLoader.
51 This is the main interface between this package and 'train.py'/'test.py'
52
53 Example:
54 >>> from data import create_dataset
55 >>> dataset = create_dataset(opt)
56 """
57 data_loader = CustomDatasetDataLoader(opt)
58 dataset = data_loader.load_data()
59 return dataset
60
61
62class CustomDatasetDataLoader():

Callers 2

train.pyFile · 0.90
test.pyFile · 0.90

Calls 2

load_dataMethod · 0.95

Tested by

no test coverage detected