summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-23 16:46:11 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-23 16:46:11 +0200
commit8128237fd4c5e1fc6fc2e07b36639f79c6aa691e (patch)
treee12a8869791501ed668c89927ca98673b378d8b5
parentb7003a098fb577c804451c026a7c4dc18f2cbc4f (diff)
process
-rw-r--r--become_yukarin/super_resolution.py1
-rw-r--r--scripts/process.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/become_yukarin/super_resolution.py b/become_yukarin/super_resolution.py
index fc91488..597ff6d 100644
--- a/become_yukarin/super_resolution.py
+++ b/become_yukarin/super_resolution.py
@@ -66,6 +66,7 @@ class SuperResolution(object):
acoustic_feature: AcousticFeature,
):
acoustic_feature = acoustic_feature.astype_only_float(numpy.float64)
+ print(acoustic_feature.f0.dtype, acoustic_feature.aperiodicity.dtype, acoustic_feature.mfcc.dtype, acoustic_feature.voiced.dtype)
f_out = AcousticFeature(
f0=acoustic_feature.f0,
spectrogram=spectrogram.astype(numpy.float64),
diff --git a/scripts/process.py b/scripts/process.py
index 7a5a362..422c8c6 100644
--- a/scripts/process.py
+++ b/scripts/process.py
@@ -69,7 +69,7 @@ def process(p: Path, acoustic_converter: AcousticConverter, super_resolution: Su
input_wave = acoustic_converter._wave_process(str(p), test=True)
input_feature = acoustic_converter._feature_process(input_wave, test=True)
converted_feature = acoustic_converter.convert_to_feature(input=input_feature, out_sampling_rate=param.voice_param.sample_rate)
- converted_feature.f0 = input_feature.f0.astype(numpy.float64)
+ # converted_feature.f0 = input_feature.f0.astype(numpy.float64)
wave = super_resolution(converted_feature.spectrogram.astype(numpy.float64), acoustic_feature=converted_feature.astype(numpy.float64), sampling_rate=param.voice_param.sample_rate)