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
7a3e15bc
Unverified
Commit
7a3e15bc
authored
Dec 19, 2020
by
Krishna Kalyan
Committed by
GitHub
Dec 19, 2020
Browse files
Replace wakl_files with glob in VCTK (#1101)
Co-authored-by:
krishnakalyan3
<
skalyan@cloudera.com
>
parent
6b810240
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
torchaudio/datasets/vctk.py
torchaudio/datasets/vctk.py
+1
-4
No files found.
torchaudio/datasets/vctk.py
View file @
7a3e15bc
...
@@ -9,7 +9,6 @@ from torch.utils.data import Dataset
...
@@ -9,7 +9,6 @@ from torch.utils.data import Dataset
from
torchaudio.datasets.utils
import
(
from
torchaudio.datasets.utils
import
(
download_url
,
download_url
,
extract_archive
,
extract_archive
,
walk_files
)
)
URL
=
"https://datashare.is.ed.ac.uk/bitstream/handle/10283/3443/VCTK-Corpus-0.92.zip"
URL
=
"https://datashare.is.ed.ac.uk/bitstream/handle/10283/3443/VCTK-Corpus-0.92.zip"
...
@@ -123,9 +122,7 @@ class VCTK(Dataset):
...
@@ -123,9 +122,7 @@ class VCTK(Dataset):
"with `download=True` to donwload the latest version."
"with `download=True` to donwload the latest version."
)
)
walker
=
walk_files
(
walker
=
sorted
(
str
(
p
.
stem
)
for
p
in
Path
(
self
.
_path
).
glob
(
'**/*'
+
self
.
_ext_audio
))
self
.
_path
,
suffix
=
self
.
_ext_audio
,
prefix
=
False
,
remove_suffix
=
True
)
walker
=
filter
(
lambda
w
:
self
.
_except_folder
not
in
w
,
walker
)
walker
=
filter
(
lambda
w
:
self
.
_except_folder
not
in
w
,
walker
)
self
.
_walker
=
list
(
walker
)
self
.
_walker
=
list
(
walker
)
...
...
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