add augment
This commit is contained in:
+5
-4
@@ -213,16 +213,17 @@ def main():
|
||||
|
||||
# ============ 创建数据加载器 ============
|
||||
train_loader = create_dataloader(
|
||||
tsv_path=workspace_dir / '.data/train.tsv',
|
||||
audio_dir=workspace_dir / '.data/clips',
|
||||
tsv_path=workspace_dir / '.data/ug/train.tsv',
|
||||
audio_dir=workspace_dir / '.data/ug/clips',
|
||||
tokenizer=tokenizer,
|
||||
batch_size=CONFIG['batch_size'],
|
||||
shuffle=True,
|
||||
augment=True
|
||||
)
|
||||
|
||||
val_loader = create_dataloader(
|
||||
tsv_path=workspace_dir / '.data/dev.tsv',
|
||||
audio_dir=workspace_dir / '.data/clips',
|
||||
tsv_path=workspace_dir / '.data/ug/dev.tsv',
|
||||
audio_dir=workspace_dir / '.data/ug/clips',
|
||||
tokenizer=tokenizer,
|
||||
batch_size=CONFIG['batch_size'],
|
||||
shuffle=False,
|
||||
|
||||
Reference in New Issue
Block a user