-
Notifications
You must be signed in to change notification settings - Fork 443
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
How to train MobileNet-YOLO-v3-lite with custom dataset? #47
Comments
mobilenet_yolov3_lite_deploy.prototxt was made from merge_bn.py , you can't use it directly. I suggest you can try modify test.prototxt to deploy.prototxt first (replace data layer and remove eval. layer) |
Thanks @eric612 , I'll try that. In the last lines - yolov3_param { |
See issue #12 |
Hi, Have you solved this problem? Now I'm training on my own dataset and I'm facing the same problem with you. Can you help me resolve this? Thanks |
Hi @eric612 , Extremely sorry for late reply. Thanks alot, your above mentioned methods worked perfectly for custom training and detection. Thanks 😊 😃 |
Hi @globalmaster , Sorry for the late reply. In mobilenet_yolov3_lite_train.prototxt, modify:
In mobilenet_yolov3_lite_test.prototxt, modify:
Once Training is done: Then once again run make commands:
Now modify MobileNet-YOLO/demo_yolo_lite.sh . Just now the eric has uploaded new mobilenet_yolov3_lite_deploy.prototxt , https://github.com/eric612/MobileNet-YOLO/blob/master/models/yolov3/mobilenet_yolov3_lite_bn_deploy.prototxt . In mobilenet_yolov3_lite_bn_deploy.prototxt, modify:-
Now go ahead and run the command bash demo_yolo_lite.sh |
@PiyalGeorge
Should I create the remove_bn.prototxt first? |
Hi @TianSong1991 , haven't you checked eric's latest update? he updated the repo today. There is no need for you to run merge_bn.py, since he has already gave you the file directly. This is the new file eric has added - https://github.com/eric612/MobileNet-YOLO/blob/master/models/yolov3/mobilenet_yolov3_lite_bn_deploy.prototxt . In mobilenet_yolov3_lite_bn_deploy.prototxt, you need to modify as i specified above. |
Oh thank you very much! @PiyalGeorge |
@PiyalGeorge |
Bro, Yes. Above it specifies to Modify 'num_output: 75' in the file. so search for 'num_output: 75' in the file and modify that only. 😃 😃 |
Hi, @eric612 , Thanks for this amazing repo. Your mobilenet-yolov3-lite model is giving good results with good fps.
Currently following your repo, i'm trying to do training on mobilenet-yolov3-lite with my custom dataset. I'm having 6 classes(including background), 50000 images converted to LMDB. I'm using train_yolov3_lite.sh for training. I modified mobilenet_yolov3_lite_train.prototxt, label_prototxt, LMDB and batch_size in here. My system allows a batch size of only 2 for training and 1 for testing(total 3). I have trained till 50000 iterations. I modified the classes in yolo_detect.cpp , make file, etc. then modified the demo_yolo_lite.sh for the new model. but it caused some convolution 'bias_term' issue in mobilenet_yolov3_lite_deploy.prototxt . Hence modified that deploy file also. After rectifying all these, when i try to run the model, it still doesn't give output, no errors. Can you help me resolve this?
The text was updated successfully, but these errors were encountered: