Skip to content

Commit b9b68b3

Browse files
author
Magenta Team
committed
Merge pull request #429 from bluenote10:bugfix/fix_slow_data_preparation
PiperOrigin-RevId: 437105634
2 parents ecb4049 + 1e0cdbd commit b9b68b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ddsp/training/data_preparation/prepare_tfrecord_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _chunk_audio(ex, sample_rate, chunk_secs):
6969
chunks = tf.signal.frame(audio, chunk_size, chunk_size, pad_end=True)
7070
n_chunks = chunks.shape[0]
7171
for i in range(n_chunks):
72-
yield {'audio': chunks[i]}
72+
yield {'audio': chunks[i].numpy()}
7373

7474

7575
def _add_f0_estimate(ex, frame_rate, center, viterbi):

ddsp/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
pulling in all the dependencies in __init__.py.
2020
"""
2121

22-
__version__ = '3.2.3'
22+
__version__ = '3.3.0'

0 commit comments

Comments
 (0)