-
Notifications
You must be signed in to change notification settings - Fork 350
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
timbre_transfer error when loading a model trained by ae.gin #333
Comments
The previous error has been solved. But I got another one when I load a model trined by ae.gin into timre_transfer colab. InvalidArgumentError Traceback (most recent call last) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/models/model.py in call(self, return_losses, *args, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py in call(self, *args, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/models/autoencoder.py in call(self, features, training) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/models/autoencoder.py in encode(self, features, training) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/nn.py in call(self, *inputs, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py in call(self, *args, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/encoders.py in call(self, *args, **unused_kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/ddsp/training/encoders.py in compute_z(self, audio) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/util/dispatch.py in wrapper(*args, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py in _slice_helper(tensor, slice_spec, var) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/util/dispatch.py in wrapper(*args, **kwargs) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py in strided_slice(input_, begin, end, strides, begin_mask, end_mask, ellipsis_mask, new_axis_mask, shrink_axis_mask, var, name) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/ops/gen_array_ops.py in strided_slice(input, begin, end, strides, begin_mask, end_mask, ellipsis_mask, new_axis_mask, shrink_axis_mask, name)
~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/tensorflow/python/framework/ops.py in raise_from_not_ok_status(e, name) ~/opt/anaconda3/envs/DDSP/lib/python3.8/site-packages/six.py in raise_from(value, from_value) InvalidArgumentError: Index out of range using input dim 2; input has only 2 dims [Op:StridedSlice] name: autoencoder_16/mfcc_time_distributed_rnn_encoder_12/strided_slice/ I check the code but I don't know how to solve this issue. |
Sorry for the delayed response. As you've observed, the timbre transfer notebook is designed to work with One thing you could try would be to just manually run |
Hi,

I have a problem when I upload a model trained by ae.gin to timbre_transfer colab file.
I guess the reason is that audio_features doesn't have the key 'z'(only have'f0_hz','f0_confidence','loudness_db'). But I have no idea how to get 'z' from the original audio file. Could you give me some advice?
Thanks a lot!
The text was updated successfully, but these errors were encountered: