GRUV
GRUV copied to clipboard
Exception: Layer timedistributeddense_1 requires to know the length of its input, but it could not be inferred automatically.
Using TensorFlow backend.
Loading training data
Finished loading training data
/usr/lib/python2.7/dist-packages/keras/layers/core.py:1112: UserWarning: TimeDistributedDense is deprecated, please use TimeDistributed(Dense(...)) instead.
warnings.warn('TimeDistributedDense is deprecated, '
Traceback (most recent call last):
File "train.py", line 27, in
Hi, I have the same error :( dataset is 3 files, two of them are 1 hour long, and one have 3 minutes
My output:
Using TensorFlow backend.
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally
Loading training data
Finished loading training data
/home/basia/keras/keras/layers/core.py:1112: UserWarning: TimeDistributedDense is deprecated, please use TimeDistributed(Dense(...)) instead.
warnings.warn('TimeDistributedDense is deprecated, '
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
name: GeForce GTX 750
major: 5 minor: 0 memoryClockRate (GHz) 1.137
pciBusID 0000:01:00.0
Total memory: 1.95GiB
Free memory: 1.72GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 750, pci bus id: 0000:01:00.0)
Traceback (most recent call last):
File "train.py", line 27, in
Solution is downgrading keras to version 0.1.0 . :) Newest keras have some changes in naming and using timedistributedense and other stuff. I'm new to keras stuff, but i think it might be easily changed in nn_utils, where this network parameters are described.
I am setting up my system and currently having the same issue. @piteight Are you using Theano or TensorFlow with keras version 0.1.0 ? I have TensorFlow installed but after doing the "sudo python setup.py install" I get an import error saying no module named keras.modules.
Meybe this will work pip install https://github.com/fchollet/keras/tarball/0.1.0
Im using Theano, beacuse I read, that GRUV isnt compatibile with TensorFlow right now.
@piteight Thank you, it seems to be working now.
I uninstalled keras and re-installed using piteight's solution. Also, I switched Keras's backend from the default TensorFlow to Theano (instructions here: https://keras.io/backend/).
For those who want to use Keras version 1.1.1 (currently the latest, as of 11/12/16) then you can adopt the changes in my repo: https://github.com/mattpearson/GRUV