快捷方式

LibriLightLimited

class torchaudio.datasets.LibriLightLimited(root: Union[str, Path], subset: str = '10min', download: bool = False)[source]

Libri-light [Kahn , 2020] 数据集的子集,在 HuBERT [Hsu , 2021] 中用于监督微调。

参数:
  • root (strPath) – 数据集所在或下载到的目录路径。

  • subset (str, 可选) – 要使用的子集。选项:["10min", "1h", "10h"] (默认: "10min")。

  • download (bool, 可选) – 如果数据集未在 root 路径找到,是否下载。 (默认: False)。

__getitem__

LibriLightLimited.__getitem__(n: int) Tuple[Tensor, int, str, int, int, int][source]

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

参数:

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

返回:

包含以下元素的元组;

Tensor

波形

int

采样率

str

转录文本

int

说话人 ID

int

章节 ID

int

话语 ID

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

获取针对初学者和高级开发者的深入教程

查看教程

资源

查找开发者资源并获得问题解答

查看资源