Comments (16)
No particular reason - ran into same issue when using Theano:
ubuntu@ip-172-31-47-104:~/wavenet$ KERAS_BACKEND=theano python wavenet.py predict with models/run_20160920_120916/config.json predict_seconds=1
Using Theano backend.
WARNING - root - Changed type of config entry "run_dir" from NoneType to unicode
WARNING - root - Changed type of config entry "optimizer.epsilon" from NoneType to float
INFO - wavenet - Running command 'predict'
WARNING - wavenet - No observers have been added to this run
INFO - wavenet - Started
INFO - predict - Using checkpoint from epoch: 358
INFO - predict - Saving to "models/run_20160920_120916/samples/sample_epoch-00358_01s__sample-temp-0.001_seed-946674575.wav"
ERROR - wavenet - Failed after 0:00:00!
Traceback (most recent calls WITHOUT Sacred internals):
File "wavenet.py", line 316, in predict
model = build_model()
File "wavenet.py", line 241, in build_model
name='initial_causal_conv')(out)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/layers/convolutional.py", line 286, in __init__
bias=bias, **kwargs)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/layers/convolutional.py", line 126, in __init__
super(Convolution1D, self).__init__(**kwargs)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 326, in __init__
raise TypeError('Keyword argument not understood:', kwarg)
TypeError: ('Keyword argument not understood:', 'causal')
from wavenet.
from wavenet.
I got same issue, too.
any idea?
from wavenet.
I solved the problem by reinstalling keras from basveeling github.
try to uninstall the keras and use it from basveeling's one
from wavenet.
Yes, you are right. Tks
from wavenet.
Doesn't work for me. I did
$ pip uninstall keras
$ pip install git+https://github.com/basveeling/keras.git
$ KERAS_BACKEND=tensorflow python wavenet.py predict with models/run_20160920_120916/config.json predict_seconds=1
And I get the following error:
Using TensorFlow backend.
Traceback (most recent call last):
File "wavenet.py", line 23, in
from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau, CSVLogger
ImportError: cannot import name ReduceLROnPlateau
Am I doing something wrong?
from wavenet.
@ZmeiGorynych I don't think @basveeling's branch of Keras can fix the problem, I tried using it and it's just too old. Try installing the newest version and tell me what shows up.
from wavenet.
newest version of Keras from PyPI?
from wavenet.
Doesn't help I'm afraid:
ubuntu@ip-172-31-47-104:~/wavenet$ pip install keras -U
...
ubuntu@ip-172-31-47-104:~/wavenet$ KERAS_BACKEND=tensorflow python wavenet.py predict with models/run_20160920_120916/config.json predict_seconds=1
Using TensorFlow backend.
WARNING - root - Changed type of config entry "run_dir" from NoneType to unicode
WARNING - root - Changed type of config entry "optimizer.epsilon" from NoneType to float
INFO - wavenet - Running command 'predict'
WARNING - wavenet - No observers have been added to this run
INFO - wavenet - Started
INFO - predict - Using checkpoint from epoch: 358
INFO - predict - Saving to "models/run_20160920_120916/samples/sample_epoch-00358_01s__sample-temp-0.001_seed-946674575.wav"
ERROR - wavenet - Failed after 0:00:00!
Traceback (most recent calls WITHOUT Sacred internals):
File "wavenet.py", line 316, in predict
model = build_model()
File "wavenet.py", line 241, in build_model
name='initial_causal_conv')(out)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/layers/convolutional.py", line 286, in __init__
bias=bias, **kwargs)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/layers/convolutional.py", line 126, in __init__
super(Convolution1D, self).__init__(**kwargs)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 326, in __init__
raise TypeError('Keyword argument not understood:', kwarg)
TypeError: ('Keyword argument not understood:', 'causal')
from wavenet.
I noticed you're explicitly using TensorFlow. Is there a reason for that?
from wavenet.
I mean, it's probably not the reason for the TypeError, but AFAIK the script doesn't like to work with TensorFlow...
from wavenet.
From what I can figure out (that is, not a lot), @basveeling used an argument (casual
) which is neither in his branch nor the master branch of Keras. The only thing I can think of (and this is probably a terrible solution) is removing casual=True,
from line 240 of wavenet.py
.
from wavenet.
It's there in many places, and there's a specific comment that the function in question is in his keras fork. How the earlier commenters managed to make it work is a mystery to me ;)
Oh well, unless someone can suggest a solution here I'll go for https://github.com/ibab/tensorflow-wavenet and https://github.com/tomlepaine/fast-wavenet instead :)
from wavenet.
Were you able to solve it?
from wavenet.
Hi! I've been running into some odd Theano errors, and I lack access to a GPU right now. I'll hopefully figure this out soon :).
from wavenet.
I think my recent fix should solve this issue. Please let me know if it works :).
from wavenet.
Related Issues (20)
- input dimemsion mis-match HOT 1
- I can successfully run this code but not the right result HOT 1
- Can't train network, basveeling's branch of Keras didn't help HOT 1
- Stuck on loading data HOT 3
- PR to Keras HOT 2
- I am writing a book on keras and wanted to mention your work on Wavenet
- Why is local conditioning hard to implement? Would be willing to help HOT 1
- Working with Keras 2.0 HOT 5
- What do need to try other languages, for examples russian or spanish? HOT 1
- Python Version HOT 1
- Generate voice from text file HOT 1
- What if I want to use this code to generate a signal waveform(not audio)
- ' learn_all_outputs'
- Save the weights and training config
- Should tanh_out and sigm_out in residual_block share the same convolutional output HOT 4
- How to Predict on Batches HOT 1
- Should an increase in dilation rate reduce the number of training parameters? HOT 1
- Parametric or concatenative TTS projects for comparision? HOT 1
- virtualenv issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wavenet.