pannous / tensorflow-speech-recognition

🎙Speech recognition using the tensorflow deep learning framework, sequence-to-sequence neural networks
Other
2.17k stars 639 forks source link

ImportError: No module named layer while running densenet_layer.py #34

Open manishanker opened 7 years ago

manishanker commented 7 years ago

Hi,

I could not run densenet_layer.py since it throws import error of the module layer.

Traceback (most recent call last): File "densenet_layer.py", line 6, in import layer ImportError: No module named layer

From my understanding, this is layers in tflearn. But the model architecture defined here doesnt work net = layer.net(simple_dense, input_shape=(width,height), output_width=classes, learning_rate=0.01)

Thanks Manishanker

pannous commented 7 years ago

do git clone --recursive https://github.com/pannous/tensorflow-speech-recognition or pip install layer

manishanker commented 7 years ago

Wow, thanks for super fast reply :)

MatCauthon commented 7 years ago

Hi,

I meet the same problem and I try pip3 install layer as my environment is python 3.5.2 with tensorflow 1.0. However, the problem can not be fixed. Any ideas?

Thanks, Mat

ackd06 commented 7 years ago

What happen with this error?i install layer and no error but i cant import layer with python

ubuntu@ubuntu-z:~$ pip install layer Requirement already satisfied: layer in ./anaconda2/lib/python2.7/site-packages Requirement already satisfied: tensorflow in ./anaconda2/lib/python2.7/site-packages (from layer) Requirement already satisfied: numpy>=1.11.0 in ./anaconda2/lib/python2.7/site-packages (from tensorflow->layer) Requirement already satisfied: mock>=2.0.0 in ./anaconda2/lib/python2.7/site-packages (from tensorflow->layer) Requirement already satisfied: six>=1.10.0 in ./anaconda2/lib/python2.7/site-packages (from tensorflow->layer) Requirement already satisfied: wheel in ./anaconda2/lib/python2.7/site-packages (from tensorflow->layer) Requirement already satisfied: protobuf>=3.1.0 in ./anaconda2/lib/python2.7/site-packages (from tensorflow->layer) Requirement already satisfied: funcsigs>=1; python_version < "3.3" in ./anaconda2/lib/python2.7/site-packages (from mock>=2.0.0->tensorflow->layer) Requirement already satisfied: pbr>=0.11 in ./anaconda2/lib/python2.7/site-packages (from mock>=2.0.0->tensorflow->layer) Requirement already satisfied: setuptools in ./anaconda2/lib/python2.7/site-packages (from protobuf>=3.1.0->tensorflow->layer) Requirement already satisfied: packaging>=16.8 in ./anaconda2/lib/python2.7/site-packages (from setuptools->protobuf>=3.1.0->tensorflow->layer) Requirement already satisfied: appdirs>=1.4.0 in ./anaconda2/lib/python2.7/site-packages (from setuptools->protobuf>=3.1.0->tensorflow->layer) Requirement already satisfied: pyparsing in ./anaconda2/lib/python2.7/site-packages (from packaging>=16.8->setuptools->protobuf>=3.1.0->tensorflow->layer)

ubuntu@ubuntu-z:~$ python

import layer Traceback (most recent call last): File "", line 1, in ImportError: No module named layer

saurabhvyas commented 7 years ago

I can confirm its still a problem , I am using tf 1.0

MatCauthon commented 7 years ago

go to layer 's directory and you can see that there is nothing for python to import ( no .py or something like that) I thought something was missing and we had no way to solve it.

saurabhvyas commented 7 years ago

So basically what are you suggesting ?

pannous commented 7 years ago

problem confirmed. In the meantime do git recursive :

git clone --recursive https://github.com/pannous/tensorflow-speech-recognition

then you should see:

tensorflow-speech-recognition/layer$ ls
baselines.py  Clockwork_RNN.py  __init__.py  net.py  old  README.md  setup.py  tensorboard_util.py
pannous commented 7 years ago

pip install --upgrade layer should now work

hudsantos commented 7 years ago

In my case git clone --recursive didn't do it's job. layed and tensorpeers directories remains empty and I do not know why... So I had to: cd tensorflow-speech-recognition git clone https://github.com/pannous/layer.git git clone https://github.com/pannous/tensorpeers.git And now I see modules there... nice! Thankyou.

Hitesh95 commented 7 years ago

what steps are to be followed after training a set, someone please explains me

MuruganR96 commented 6 years ago

I'm also same confusion. someone explain how to execute ?