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

Cleanup io and add hop_lengths to vq #2

Merged
merged 4 commits into from
Apr 30, 2020
Merged

Cleanup io and add hop_lengths to vq #2

merged 4 commits into from
Apr 30, 2020

Conversation

heewooj
Copy link
Contributor

@heewooj heewooj commented Apr 29, 2020

No description provided.

@heewooj heewooj requested a review from prafullasd April 29, 2020 23:57
@@ -101,7 +80,7 @@ def load(file, loader):

files = librosa.util.find_files('/root/data/', ['mp3', 'm4a', 'opus'])
print(files[:10])
loader = load_pyav
loader = load_sound
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be load_audio?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep fixed

if multipliers is None:
self.multipliers = [1] * levels
else:
assert len(multipliers) == levels, "Invalid number of multipliers"
self.multipliers = multipliers
self.z_shapes = z_shapes = [(x_shape[0] // np.prod(pow_w[:i]),) for i in range(1,levels+1)]
self.z_shapes = z_shapes = [(x_shape[0] // self.hop_lengths[level],) for level in range(levels)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems fine. any reason for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exposing hop_lengths from vqvae would make it simpler to do primed_sampling (making multiples, etc)

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

Successfully merging this pull request may close these issues.

2 participants