LibriLightLimited¶ class torchaudio.datasets.LibriLightLimited(root: Union[str, Path], subset: str = '10min', download: bool = False)[原始碼]¶ Libri-light 的子集 [Kahn et al., 2020] 資料集,用於 HuBERT [Hsu et al., 2021] 中進行監督式微調。 參數: root (str 或 Path) – 資料集所在或下載目錄的路徑。 subset (str, optional) – 要使用的子集。選項: ["10min", "1h", "10h"] (預設值:"10min")。 download (bool, optional) – 如果在 root 路徑中找不到資料集,是否下載資料集。(預設值:False)。 __getitem__¶ LibriLightLimited.__getitem__(n: int) → Tuple[Tensor, int, str, int, int, int][原始碼]¶ 從資料集中載入第 n 個樣本。 參數: n (int) – 要載入的樣本索引 傳回: 以下項目的 Tuple; Tensor波形 int採樣率 str文本 int說話者 ID int章節 ID int語句 ID