MobileNetv2-SSDLite icon indicating copy to clipboard operation
MobileNetv2-SSDLite copied to clipboard

The mAP after fine-turning and the train tricks

Open RushDon opened this issue 6 years ago • 15 comments

Hi, Thanks for you works firstly. I have some questions about this network.

First, the slice layers used for padding [ 0 0 1 1] will incerase the time of forward-backward from 60ms to 90ms on my machine. By the caffe time tool, the increased time is not mainly from the slice layers, but slice layers will cause other layers slower. do you have any experiences to show if this padding affects the mAP significantly? if not, it is not necessary to add additional layers.

In order to verify the ReLU6,I replace the ReLU with ReLU6 in mobilenetv1-ssd,ReLU6 don't improve the mAP at all, but reduced by about 1%. how about the function of ReLU6 in V2?

The mAP of the Mobilenet V2-SSDlite on VOC data can only reach about 20% without pre-trained model. how about your mAP afer fine-turning with transfered pre-model and without pre-model respectively? it seems that it is very hard to train this network. Could you please share some training skills?

RushDon avatar May 30 '18 15:05 RushDon

@RushDon Hi, I am trying to train custom dataset. Newbie in caffe, can you help me with the steps to start training. The usage in readme did'nt help me much. Thanks, Balaji

balajib363 avatar May 31 '18 06:05 balajib363

@BalajiB197 Hi, there is an instruction about how to train on your own data. https://github.com/chuanqi305/MobileNetv2-SSDLite#train-your-own-dataset it should be very celar. if you have troubles with them, refer to https://github.com/chuanqi305/MobileNet-SSD#train-your-own-dataset this should be helpful too. actually the only thing you need to do is change the directory address correspongdingly.

RushDon avatar May 31 '18 09:05 RushDon

@RushDon I ran caffe_demo.py but my output is not proper other classes bounding boxes are added. Actually I get error when I use /ssdlite/coco/deploy.prototxt with /ssdlite/deployprototxt. But not facing any error when I run /ssdlite/deploy.prototxt with /ssdlite/deployprototxt and gives me wrong prediction. Don't mind if my question is silly. caffe_ssdlite

balajib363 avatar May 31 '18 09:05 balajib363

@BalajiB197 I think the transfered model need to be fine-turned, it can not be applied directory because the details of the model in tensorflow and the caffe are a little different.

RushDon avatar May 31 '18 10:05 RushDon

@RushDon Thanks, I will try to rebuild and check. Have you try to run for ssdlite mobilenetv2 on top of caffe? If you have a proper file can you share me.

balajib363 avatar May 31 '18 11:05 balajib363

@BalajiB197 @RushDon
hi, I have some problems to get mobilenet v2 ssdlite/ssd caffemodel, because my computer memory isn't enough. can you share me Mobilenetv2 ssd_voc.caffemodel, Mobilenetv2 ssdl_voc.caffemodel, Mobilenetv2 ssdl_coco.caffemodel? my email is [email protected]. Thank you very much~

dlyldxwl avatar Jun 04 '18 13:06 dlyldxwl

@dlyldxwl I am looking for the same. Even I have issues with my machine for training.

balajib363 avatar Jun 04 '18 14:06 balajib363

@dlyldxwl the trained models are terrible, which can not be applied. if you have the memeory problems, you can uncomment the engine: CAFFE to use the cpu to train the model. slow but work.

RushDon avatar Jun 05 '18 11:06 RushDon

@RushDon Same issue I am facing, where exactly we need to uncomment the caffe: engine.

balajib363 avatar Jun 05 '18 12:06 balajib363

@BalajiB197 In the gen_model.py, search key words engine, you will find that the engine:CAFFE is commented. remove the # to make it effective. Then search the batch_size for the train, replace the original value with a new value. 12 works for me.

RushDon avatar Jun 06 '18 07:06 RushDon

@RushDon Thank you for you reply! my computer memory is 12G, when I run the load_caffe_weights file, it has memory error. could you send me Mobilenetv2 ssd_voc.caffemodel, Mobilenetv2 ssdl_voc.caffemodel, Mobilenetv2 ssdl_coco.caffemodel converted from TF. I want to train the caffemodel. my email is [email protected]. thank you very much~

dlyldxwl avatar Jun 06 '18 07:06 dlyldxwl

@dlyldxwl I didn't tranfer them from TF. what i need is to train on my own data, there is no classes i need in the VOC and COCO data. So i need to find how to train from zero.

RushDon avatar Jun 06 '18 08:06 RushDon

@RushDon I found the caffe engine and uncomment it, but still facing memory issue. No solution found for proper caffe model which runs ssdlite_mobilenetv2 ?

balajib363 avatar Jun 06 '18 11:06 balajib363

@BalajiB197 how about to set the batch_size to 1?

RushDon avatar Jun 06 '18 21:06 RushDon

@RushDon I am also working on the same to train on my own images, can we connect in mail? [email protected]

balajib363 avatar Jun 07 '18 07:06 balajib363