ljuvela / gelp Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hello, thank you for your project!
However, I encountered an error during runtime, when I run:
python generate_copysyn.py --model_dir sessions/pretrained --input_wav_dir demo_data/wav --suppress_warnings
error as follows:
WARNING:tensorflow:From /home/sywang/GELP-master/model_causal.py:25: calling Constant.init (from tensorflow.python.
ops.init_ops) with dtype is deprecated and will be removed in a future version.Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
Traceback (most recent call last):
File "generate_copysyn.py", line 218, in
copy_synthesis(args)
File "generate_copysyn.py", line 176, in copy_synthesis
x_fake_flat = ar_synthesis_filter(exc_fake_flat, a, frame_length, frame_step, nfft)
File "/home/sywang/GELP-master/sigproc.py", line 166, in ar_synthesis_filter
A = tf.signal.rfft(a_pad)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/tensorflow_core/python/ops/signal/fft_ops.py",
line 124, in _rfft input_tensor = _maybe_pad_for_rfft(input_tensor, fft_rank, fft_length)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/tensorflow_core/python/ops/signal/fft_ops.py",
line 99, in _maybe_pad_for_rfft outer_paddings = _array_ops.zeros([outer_dims], fft_length.dtype)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line
2338, in zeros output = _constant_if_small(zero, shape, dtype, name)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line
2295, in _constant_if_small if np.prod(shape) < 1000:
File "<array_function internals>", line 6, in prod
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 3031, in prod
keepdims=keepdims, initial=initial, where=where)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapr
eduction return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
File "/home/sywang/anaconda2/envs/gelp-gpu/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line
736, in array " array.".format(self.name))
NotImplementedError: Cannot convert a symbolic Tensor (rfft/Maximum:0) to a numpy array.
How can I solve this? Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.