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

ImportError: No module named models.dnn #47

Open
Document-Data-Analyst opened this issue Oct 11, 2016 · 2 comments
Open

ImportError: No module named models.dnn #47

Document-Data-Analyst opened this issue Oct 11, 2016 · 2 comments

Comments

@Document-Data-Analyst
Copy link

I have downloaded successfully all dependencies required to run pdnn. But when i run the following command from terminal

python pdnn/cmds/run_DNN.py --train-data "train.pickle.gz,partition=600m,random=true" \

it shows an import error message.

As I am new to this learning environment. I seek your help for the purpose to rectify this error.

Regards,

@a00achild1
Copy link

I have the same problem when I try to run the examples/mnist/run.sh
the dnn.training.log just show:

Traceback (most recent call last):
File "C:/pdnn-master/cmds/run_DNN.py", line 27, in
from models.dnn import DNN
ImportError: No module named models.dnn

@idhamari
Copy link

idhamari commented Mar 14, 2018

I have the same error in Ubuntu16, The pythonpath was not defined correctly. I created a demo file as the run scripts in the examples folder, everything works.

 pdnndir=<your path>/pdnn  # pointer to PDNN
 device=cuda*  # the device to be used. set it to "cpu" if you don't have GPUs

export PYTHONPATH=$PYTHONPATH:$pdnndir
export THEANO_FLAGS=mode=FAST_RUN,device=$device,floatX=float32

wget http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz

echo "Preparing datasets ..."
python data_prep.py

python  $pdnndir/cmds/run_DNN.py      --train-data "train.pickle.gz,partition=600m,random=true" \
                                  --valid-data "valid.pickle.gz,partition=600m,random=true" \
                                  --nnet-spec "784:1024:1024:1024:1024:1024:1901" \
                                  --wdir ./  --param-output-file dnn.mdl`

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

3 participants