names shadowing builtins (#5179)

Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
Roelof van Dijk
2024-06-27 14:15:01 +02:00
committed by GitHub
parent 26e254c42b
commit 975b811ad9
7 changed files with 18 additions and 17 deletions

View File

@@ -51,12 +51,12 @@ def run_evaluation(model_name, tinygrad_expected_wer, reference_wer):
class LibriSpeech(torch.utils.data.Dataset):
def __init__(self):
dir = pathlib.Path(__file__).parent.parent.parent / "extra" / "datasets" / "librispeech"
if not os.path.exists(dir):
os.makedirs(dir)
folder = pathlib.Path(__file__).parent.parent.parent / "extra" / "datasets" / "librispeech"
if not os.path.exists(folder):
os.makedirs(folder)
self.dataset = torchaudio.datasets.LIBRISPEECH(
root=dir,
root=folder,
url="test-clean",
download=True,
)