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
0fe0305a
".github/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "4dc06ceb8fe378fb72da6b2e2c0bdbd5fc7a308a"
Commit
0fe0305a
authored
Apr 09, 2018
by
PG_LoLo
Browse files
YESNO dataset download fix
parent
cedeaf34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
torchaudio/datasets/yesno.py
torchaudio/datasets/yesno.py
+1
-3
No files found.
torchaudio/datasets/yesno.py
View file @
0fe0305a
...
@@ -101,9 +101,7 @@ class YESNO(data.Dataset):
...
@@ -101,9 +101,7 @@ class YESNO(data.Dataset):
filename
=
url
.
rpartition
(
'/'
)[
2
]
filename
=
url
.
rpartition
(
'/'
)[
2
]
file_path
=
os
.
path
.
join
(
self
.
root
,
self
.
raw_folder
,
filename
)
file_path
=
os
.
path
.
join
(
self
.
root
,
self
.
raw_folder
,
filename
)
if
not
os
.
path
.
isfile
(
file_path
):
if
not
os
.
path
.
isfile
(
file_path
):
data
=
urllib
.
request
.
urlopen
(
url
)
urllib
.
request
.
urlretrieve
(
url
,
file_path
)
with
open
(
file_path
,
'wb'
)
as
f
:
f
.
write
(
data
.
read
())
else
:
else
:
print
(
"Tar file already downloaded"
)
print
(
"Tar file already downloaded"
)
if
not
os
.
path
.
exists
(
dset_abs_path
):
if
not
os
.
path
.
exists
(
dset_abs_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