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
cedeaf34
Commit
cedeaf34
authored
Apr 09, 2018
by
PG_LoLo
Browse files
VCTK dataset download fix
parent
c844ac63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
torchaudio/datasets/vctk.py
torchaudio/datasets/vctk.py
+1
-3
No files found.
torchaudio/datasets/vctk.py
View file @
cedeaf34
...
@@ -181,9 +181,7 @@ class VCTK(data.Dataset):
...
@@ -181,9 +181,7 @@ class VCTK(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
())
if
not
os
.
path
.
exists
(
dset_abs_path
):
if
not
os
.
path
.
exists
(
dset_abs_path
):
with
tarfile
.
open
(
file_path
)
as
zip_f
:
with
tarfile
.
open
(
file_path
)
as
zip_f
:
zip_f
.
extractall
(
raw_abs_dir
)
zip_f
.
extractall
(
raw_abs_dir
)
...
...
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