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

ValueError: could not broadcast input array from shape (211,60) into shape (1) #3

Open
ghost opened this issue Jan 16, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 16, 2022

Thanks for sharing this interesting project!
I have run preprocessing of my dataset without errors, and there are 7 files in the ProcessedData directory (aperiodic_data.npy, column_list.pkl, cutoff_points.npy, frequency.npy, label_data.npy, min_max.npy, spectral_data.npy). But I run into an issue when I continue with training a model. Can you please tell what may be causing it and how to resolve it?

Traceback (most recent call last):
  File "main.py", line 47, in <module>
    singing_model = SingingModel(spectral_data, aperiodic_data, f_data, label_data, cutoff_points, model_name)
  File "/home/<path_cropped>/vocsynth-neural-singing-synthesizer/model.py", line 31, in __init__
    self.harmonic_data_set = HarmonicDataSet(spectral_data, aperiodic_data, label_data, cutoff_points)
  File "/home/<path_cropped>/vocsynth-neural-singing-synthesizer/data_handler.py", line 70, in __init__
    self.spectral_data = np.asarray(spectral_array)
  File "/home/<path_cropped>/lib/python3.8/site-packages/numpy/core/_asarray.py", line 85, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: could not broadcast input array from shape (211,60) into shape (1)
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

0 participants