mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Imagenet training accuracy keeps 0.001 even after shuffling the data list

Open jimxinbo opened this issue 10 years ago • 5 comments

I am running alexnet on imagenet12 data. I followed the im2rec tutorial where I definitely shuffled the datalist. But the train and val accuracy keep at around 0.001. Any suggestions?

Btw, I am using most of the default settings in train_imagenet.py (e.g. initial learning rate is 0.01) and the data were loaded in successfully.

I tried adding "shuffle = True" in ImageRecordIter, but as is expected this did not make any difference (given that my train.rec is generated from a shuffled list txt file).

Thx.

jimxinbo avatar Dec 07 '15 06:12 jimxinbo

I occur the similiar problem. I hope the following can help you

you change the https://github.com/dmlc/mxnet/blob/master/example/image-classification/train_model.py#L56 => initializer = mx.init.Normal(sigma=0.01),

and try it again

in my case, after change the initializer, my train model begin to converge.

qiaohaijun avatar Dec 07 '15 06:12 qiaohaijun

other way, you can add a new model named alexnet-bn, use the your current super parameter, it converge too.

qiaohaijun avatar Dec 07 '15 06:12 qiaohaijun

I see your point. I checked that changing the initializer in train_model.py worked for me. Great, thanks!

jimxinbo avatar Dec 07 '15 07:12 jimxinbo

you are welcome, I find the initialization issue from the comparsion with caffe initialization.

qiaohaijun avatar Dec 07 '15 08:12 qiaohaijun

I see. That's a good catch.

jimxinbo avatar Dec 07 '15 08:12 jimxinbo