Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
198f83e2
Unverified
Commit
198f83e2
authored
Mar 30, 2021
by
Daniel Di Sarli
Committed by
GitHub
Mar 29, 2021
Browse files
Fix checksum for the YESNO dataset (#1405)
parent
512c2fa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchaudio/datasets/yesno.py
torchaudio/datasets/yesno.py
+2
-2
No files found.
torchaudio/datasets/yesno.py
View file @
198f83e2
...
...
@@ -16,7 +16,7 @@ _RELEASE_CONFIGS = {
"release1"
:
{
"folder_in_archive"
:
"waves_yesno"
,
"url"
:
"http://www.openslr.org/resources/1/waves_yesno.tar.gz"
,
"checksum"
:
"
30301975fd8c5cac4040c261c0852f57cfa8adbbad2ce78e77e4986957445f27
"
,
"checksum"
:
"
c3f49e0cca421f96b75b41640749167b52118f232498667ca7a5f9416aef8e73
"
,
}
}
...
...
@@ -54,7 +54,7 @@ class YESNO(Dataset):
if
not
os
.
path
.
isdir
(
self
.
_path
):
if
not
os
.
path
.
isfile
(
archive
):
checksum
=
_RELEASE_CONFIGS
[
"release1"
][
"checksum"
]
download_url
(
url
,
root
,
hash_value
=
checksum
,
hash_type
=
"md5"
)
download_url
(
url
,
root
,
hash_value
=
checksum
)
extract_archive
(
archive
)
if
not
os
.
path
.
isdir
(
self
.
_path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment