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

Working with Keras 2.0 #29

Open
agulli opened this issue Apr 3, 2017 · 5 comments
Open

Working with Keras 2.0 #29

agulli opened this issue Apr 3, 2017 · 5 comments

Comments

@agulli
Copy link

agulli commented Apr 3, 2017

Hi Bas,
have you tried to make this working with K2.0?

@basveeling
Copy link
Owner

No, but with the legacy changes it would probably work just fine. Do note that I've pushed causal 1d convolutions to keras, but with a different api (using the padding parameter).

@agulli
Copy link
Author

agulli commented Apr 13, 2017

Can you explain what you mean? I am having issues in making it working on V2.

@basveeling
Copy link
Owner

Keras provides a legacy layer that should make it easy to run keras v1 code on keras v2. Feel free to post any tracebacks and errors here.

@jerpint
Copy link

jerpint commented Aug 25, 2017

Hi,

I am trying to train using the provided code. One thing I notice is that when running train.py, I get the following error:
Traceback (most recent call last): File "wavenet.py", line 27, in <module> from wavenet_utils import CausalAtrousConvolution1D, categorical_mean_squared_error File "/home/jerpint/Documents/wavenet/wavenet_utils.py", line 3, in <module> from keras.utils.np_utils import conv_output_length ImportError: cannot import name conv_output_length
Fixing line 3 in wavenet_utils.py from

from keras.utils.np_utils import conv_output_length

to

from keras.utils.conv_utils import conv_output_length

I get the following error :

Traceback (most recent call last): File "wavenet.py", line 27, in <module> from wavenet_utils import CausalAtrousConvolution1D, categorical_mean_squared_error File "/home/jerpint/Documents/wavenet/wavenet_utils.py", line 12, in <module> class CausalAtrousConvolution1D(AtrousConvolution1D): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str
I am unsure how to solve this issue...

I am using keras V2.0.3 and Python 2.7

@imdatceleste
Copy link

Hi @jerpint et. al.: I have created a Keras-2.1 experimental version and am testing it. I will continue testing, but I thought you might want to have a look here at Keras2-Wavenet

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

4 participants