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)
| 45 | |
| 46 | |
| 47 | def 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 | |
| 62 | class CustomDatasetDataLoader(): |
no test coverage detected