Skip to content

Commit

Permalink
Bug fix, add new files to ddsp.training.__init__
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 315011603
  • Loading branch information
jesseengel authored and Magenta Team committed Jun 5, 2020
1 parent e89e087 commit 5ea2ba9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ddsp/training/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
from ddsp.training import encoders
from ddsp.training import eval_util
from ddsp.training import inference
from ddsp.training import metrics
from ddsp.training import models
from ddsp.training import nn
from ddsp.training import preprocessing
from ddsp.training import summaries
from ddsp.training import train_util
from ddsp.training import trainers
7 changes: 6 additions & 1 deletion ddsp/training/metrics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
"""Tests for ddsp.training.eval_util."""

from absl.testing import parameterized
from ddsp.spectral_ops_test import gen_np_sinusoid
from ddsp.training.metrics import compute_audio_features
import numpy as np
import tensorflow.compat.v2 as tf


def gen_np_sinusoid(frequency, amp, sample_rate, audio_len_sec):
x = np.linspace(0, audio_len_sec, int(audio_len_sec * sample_rate))
audio_sin = amp * (np.sin(2 * np.pi * frequency * x))
return audio_sin


class ComputeAudioFeaturesTest(parameterized.TestCase, tf.test.TestCase):

def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion ddsp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
pulling in all the dependencies in __init__.py.
"""

__version__ = '0.5.0'
__version__ = '0.5.1'

0 comments on commit 5ea2ba9

Please sign in to comment.