Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCTK Using Path and glob instead of walk_files #1101

Merged
merged 2 commits into from
Dec 19, 2020

Conversation

krishnakalyan3
Copy link
Contributor

Remove walk_files from VCTK dataset

Fixes:
#1051
#1069

@krishnakalyan3
Copy link
Contributor Author

This PR was not tested as this dataset is no longer available.

Copy link
Collaborator

@mthrok mthrok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please do the honor to delete the implementation of walk_files.

walker = walk_files(
self._path, suffix=self._ext_audio, prefix=False, remove_suffix=True
)
walker = sorted(str(p.stem) for p in Path(self._path).glob('*/*/*' + self._ext_audio))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the pattern to '**/*' + self._ext_audio?

That should match the behavior of the original implementation.

@mthrok mthrok merged commit 7a3e15b into pytorch:master Dec 19, 2020
@mthrok
Copy link
Collaborator

mthrok commented Dec 19, 2020

Thanks! @krishnakalyan3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants