快捷方式

DR_VCTK

class torchaudio.datasets.DR_VCTK(root: Union[str, Path], subset: str = 'train', *, download: bool = False, url: str = 'https://datashare.ed.ac.uk/bitstream/handle/10283/3038/DR-VCTK.zip')[源代码]

Device Recorded VCTK (小型子集版本) [Sarfjoo and Yamagishi, 2018] 数据集。

参数
  • root (strPath) – 数据集顶层目录所在的根目录。

  • subset (str) – 要使用的子集。可以是 "train""test" 中的一个。(默认: "train")。

  • download (bool) – 如果在根路径找不到数据集,是否下载它。(默认: False)。

  • url (str) – 下载数据集的 URL。(默认: "https://datashare.ed.ac.uk/bitstream/handle/10283/3038/DR-VCTK.zip")

__getitem__

DR_VCTK.__getitem__(n: int) Tuple[Tensor, int, Tensor, int, str, str, str, int][源代码]

加载数据集中的第 n 个样本。

参数

n (int) – 要加载的样本的索引

返回

元组包含以下项:

张量

干净的波形

int

干净波形的采样率

张量

噪声波形

int

噪声波形的采样率

str

说话人 ID

str

发音单元 ID

str

来源

int

通道 ID

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源