test_vctk.py 321 字节
Newer Older
C
chenfeiyu 已提交
1 2 3 4 5 6 7 8 9 10 11
from parakeet.datasets import vctk
from pathlib import Path
from parakeet.data.datacargo import DataCargo

root = Path("/workspace/datasets/VCTK-Corpus")
vctk_dataset = vctk.VCTK(root)
vctk_cargo = DataCargo(vctk_dataset, batch_size=16, shuffle=True, drop_last=True)

for i, batch in enumerate(vctk_cargo):
    print(i)