def create(model_config, path, num_workers, batch_size, augmentations=None, tta=None):
if not os.path.isabs(path):<EOL><INDENT>path = model_config.project_top_dir(path)<EOL><DEDENT>train_path = os.path.join(path, '<STR_LIT:train>')<EOL>valid_path = os.path.join(path, '<STR_LIT>')<EOL>train_ds = ImageDirSource(train_path)<EOL>val_ds = ImageDirSource(valid_path)<EOL>return TrainingData(<EOL>train_ds,<EOL>val_ds,<EOL>num_workers=num_workers,<EOL>batch_size=batch_size,<EOL>augmentations=augmentations,<EOL>)<EOL>
Create an ImageDirSource with supplied arguments