-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
jukebox/utils/io.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
No description provided.