yajiemiao / pdnn

PDNN: A Python Toolkit for Deep Learning. http://www.cs.cmu.edu/~ymiao/pdnntk.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reg: Error while training PDNN using maxout

ellurunaresh opened this issue · comments

Hi all,

I was running PDNN with dropout+maxout parameters. Found the error at DNN training.
Please help me out how to solve this issue.

*_Using gpu device 0: Tesla K40m
[2016-04-28 06:54:31.804045] > ... building the model
Traceback (most recent call last):
File "pdnn/cmds/run_DNN.py", line 85, in
_file2nnet(dnn.layers, set_layer_num = ptr_layer_number, filename = ptr_file)
File "/home/kk/work/eng/pdnn/io_func/model_io.py", line 114, in file2nnet
layer.W.set_value(factor * np.asarray(string_2_array(nnet_dict[dict_a]), dtype=theano.config.floatX).reshape(mat_shape))
ValueError: total size of new array must be unchanged
*

Command used for training DNN is:

   $pythonCMD pdnn/cmds/run_DNN.py --train-data "$working_dir/train_tr95.pfile.*.gz,partition=2000m,random=true,stream=true" \
                                    --valid-data "$working_dir/train_cv05.pfile.*.gz,partition=600m,random=true,stream=true" \
                                    --nnet-spec "429:400:400:400:913" \
                                    --ptr-file $working_dir/dnn.ptr --ptr-layer-number $numHidden \
                                    --dropout-factor "0.2,0.2,0.2" \
                                    --activation "maxout:3" \
                                    --lrate "D:0.08:0.5:0.2,0.2:8" \
                                    --wdir $working_dir --kaldi-output-file $working_dir/dnn.nnet || exit 1;