tensorflow-speech-recognition icon indicating copy to clipboard operation
tensorflow-speech-recognition copied to clipboard

ImportError: No module named layer while running densenet_layer.py

Open manishanker opened this issue 7 years ago • 12 comments

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

manishanker avatar Feb 22 '17 10:02 manishanker

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

pannous avatar Feb 22 '17 10:02 pannous

Wow, thanks for super fast reply :)

manishanker avatar Feb 22 '17 10:02 manishanker

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

MatCauthon avatar Mar 03 '17 03:03 MatCauthon

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

ackd06 avatar Mar 13 '17 12:03 ackd06

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

saurabhvyas avatar Mar 22 '17 10:03 saurabhvyas

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.

MatCauthon avatar Mar 22 '17 10:03 MatCauthon

So basically what are you suggesting ?

saurabhvyas avatar Mar 22 '17 11:03 saurabhvyas

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 avatar Mar 22 '17 11:03 pannous

pip install --upgrade layer should now work

pannous avatar Mar 22 '17 11:03 pannous

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.

hudsantos avatar Apr 16 '17 22:04 hudsantos

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

Hitesh95 avatar Sep 13 '17 16:09 Hitesh95

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

MuruganR96 avatar Aug 02 '18 07:08 MuruganR96