快捷方式

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 開發者文件

檢視文件

教程

獲取針對初學者和高階開發者的深入教程

檢視教程

資源

查詢開發者資源並獲得問題解答

檢視資源