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 in complex_shallow_convnet #17

Open
OisinMoran opened this issue Dec 12, 2017 · 2 comments
Open

ValueError in complex_shallow_convnet #17

OisinMoran opened this issue Dec 12, 2017 · 2 comments

Comments

@OisinMoran
Copy link
Contributor

In trying to run through the README, I encounter this error when trying to run the first complex model with scripts/train.py shallow__complex_model --in-memory --model=complex_shallow_convnet --complex --local-data data/musicnet_11khz.npz and am unsure of how to fix it.

Traceback (most recent call last):
  File "scripts/train.py", line 148, in <module>
    main(**parser.parse_args().__dict__)
  File "scripts/train.py", line 106, in main
    model = get_model(model, dataset.feature_dim)
  File "scripts/train.py", line 79, in get_model
    channels=feature_dim[1])
  File "/home/oisin/deep_complex_networks/musicnet/musicnet/models/complex/__init__.py", line 31, in get_shallow_convnet
    activation='relu')(inputs)
  File "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 587, in __call__
    self.assert_input_compatibility(inputs)
  File "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 497, in assert_input_compatibility
    ' but got shape ' + str(x_shape))
ValueError: Input 0 is incompatible with layer complex_conv1d_1: expected axis -1 of input shape to have value 0 but got shape (None, 4096, 1)

Any help would be greatly appreciated!

@yannan123
Copy link

Hello,
Have you solved the problem? The same error occurred to me. How did you solve it?

@OisinMoran
Copy link
Contributor Author

@yannan123 Hello! Unfortunately no, I was not able to solve this issue.

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

2 participants