LibriLightLimited¶ class torchaudio.datasets.LibriLightLimited(root: Union[str, Path], subset: str = '10min', download: bool = False)[source]¶ Libri-light 的子集 [Kahn et al., 2020] 数据集,在 HuBERT [Hsu et al., 2021] 中用于监督微调。 参数: root (str 或 Path) – 数据集所在或下载到的目录路径。 subset (str, optional) – 要使用的子集。选项: ["10min", "1h", "10h"] (默认: "10min")。 download (bool, optional) – 如果在根路径下未找到数据集,是否下载数据集。(默认: 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