Skip to content

Commit

Permalink
fix #472
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei123456 committed Dec 6, 2023
1 parent b70d5a9 commit cb1cee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spikingjelly/datasets/speechcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import torchaudio
from torch.utils.data import Dataset
from torch import Tensor
from torchaudio.datasets.utils import (
from torchvision.datasets.utils import (
download_url,
extract_archive
)
Expand Down Expand Up @@ -122,7 +122,7 @@ def __init__(self,
if not os.path.isdir(self._path):
if not os.path.isfile(archive):
checksum = _CHECKSUMS.get(url, None)
download_url(url, root, hash_value=checksum, hash_type="md5")
download_url(url, root, md5=checksum)
extract_archive(archive, self._path)
elif not os.path.isdir(self._path):
raise FileNotFoundError("Audio data not found. Please specify \"download=True\" and try again.")
Expand Down

0 comments on commit cb1cee0

Please sign in to comment.