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
"docs/vscode:/vscode.git/clone" did not exist on "63f7796a72f9afbcba64f9bf0df11753ecc4558d"
Commit
cedeaf34
authored
Apr 09, 2018
by
PG_LoLo
Browse files
VCTK dataset download fix
parent
c844ac63
Changes
1
Show 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):
filename
=
url
.
rpartition
(
'/'
)[
2
]
file_path
=
os
.
path
.
join
(
self
.
root
,
self
.
raw_folder
,
filename
)
if
not
os
.
path
.
isfile
(
file_path
):
data
=
urllib
.
request
.
urlopen
(
url
)
with
open
(
file_path
,
'wb'
)
as
f
:
f
.
write
(
data
.
read
())
urllib
.
request
.
urlretrieve
(
url
,
file_path
)
if
not
os
.
path
.
exists
(
dset_abs_path
):
with
tarfile
.
open
(
file_path
)
as
zip_f
:
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