Skip to content
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

Changing num_mcep value always results in an error #2

Open
Likkkez opened this issue Oct 21, 2019 · 0 comments
Open

Changing num_mcep value always results in an error #2

Likkkez opened this issue Oct 21, 2019 · 0 comments

Comments

@Likkkez
Copy link

Likkkez commented Oct 21, 2019

Traceback (most recent call last):
  File "train_cyclegan_vc2.py", line 39, in <module>
    model = CycleGAN2(num_features=num_mcep, batch_size=mini_batch_size, log_dir=log_dir)
  File "/media/dmitriy/Main2/NeuralNetworks/CycleGAN-VC2-2/GAN-Voice-Conversion/models/cyclegan_vc2.py", line 21, in __init__
    self.build_model()
  File "/media/dmitriy/Main2/NeuralNetworks/CycleGAN-VC2-2/GAN-Voice-Conversion/models/cyclegan_vc2.py", line 81, in build_model
    self.cycle_loss = l1_loss(y=self.input_A_real, y_hat=self.cycle_A) + l1_loss(y=self.input_B_real,
  File "/media/dmitriy/Main2/NeuralNetworks/CycleGAN-VC2-2/GAN-Voice-Conversion/models/utils.py", line 5, in l1_loss
    return tf.reduce_mean(tf.abs(y - y_hat))
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/ops/math_ops.py", line 812, in binary_op_wrapper
    return func(x, y, name=name)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/ops/gen_math_ops.py", line 9536, in sub
    "Sub", x=x, y=y, name=name)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
    op_def=op_def)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3300, in create_op
    op_def=op_def)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1823, in __init__
    control_input_ops)
  File "/media/dmitriy/Main2/NeuralNetworks/Anaconda3/envs/cycleganvc/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1662, in _create_c_op
    raise ValueError(str(e))
ValueError: Dimensions must be equal, but are 70 and 36 for 'sub' (op: 'Sub') with input shapes: [?,70,?], [1,36,?].

I've noticed that on the leimao's implementation the num_mcep value is 24 but on yours it's 36. Can you please explain how you changed it? It seems to always give me an error when i try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant