Giter Club home page Giter Club logo

Comments (11)

eric612 avatar eric612 commented on May 12, 2024

Hi ,
Thanks for your feedback , I'll try it next week , here is my guess to solve this problem :

  1. to get a good pre-train weights
  2. solver type change to sgd

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

I first try to train original model and using pretrain coco weights (conver from original website , tutorial ), and mAP was 0.72 , deploy model just uploaded , there are some reasons mAP be lower than original yolo :

  1. Original concat layer fixed shape when layer setup , so training can not use adaptive image size, like 320~608
  2. I can't convert voc weights to caffemodel , I think there are some different between these frameworks
  3. etc ..

And if have time and machine , I'll try to optimize it.

from mobilenet-yolo.

guantinglin avatar guantinglin commented on May 12, 2024

Hi,

Thanks for your reply.
I have tried some modifications on the darknet19+yolov2 architecture.
Can you briefly describe how to test the mAP after training?
I used the following command but only returned some weird information...
build/tools/caffe test --model yolo_darknet_test.prototxt --weights yolo_darknet_solver_iter_80000.caffemodel --iterations 4952 --gpu 0

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

I usually use to set solver max_iter = 0 , and start training . It should start to test
Note : do not modify batch size of test prototxt , currently , the yolo eval function do not support batch size > 1

from mobilenet-yolo.

guantinglin avatar guantinglin commented on May 12, 2024

Actually, I have tried so...
But got no response...
image

Here is my solver setting
image

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

Below is my solver setting , and it works ,
I think if it do not show mAP , maybe eval layer didn't receive any detection results . It happened when used mismatch prototxt and model

Note : I update the darknet model today

train_net: "models/darknet/darknet19_train.prototxt"
test_net: "models/darknet/darknet19_test.prototxt"
test_iter: 4952
test_interval: 1000
base_lr: 0.001
display: 10
max_iter: 0
lr_policy: "multistep"
gamma: 0.1
weight_decay: 0.00005
snapshot: 1000
snapshot_prefix: "models/darknet/yolov2_deploy"
solver_mode: GPU
debug_info: false
snapshot_after_train: true
test_initialization: false
average_loss: 10
stepvalue: 60000
stepvalue: 80000
iter_size: 2
type: "SGD"
eval_type: "detection"
ap_version: "11point"
show_per_class_result: true

script :
./tools/caffe train --solver models/darknet/darknet19_solver.prototxt --weights models/darknet/yolov2_deploy_iter_50000.caffemodel --gpu=0 2>&1 | tee $LOG

image

from mobilenet-yolo.

guantinglin avatar guantinglin commented on May 12, 2024

Hi,

I trained the darknet-yolov2 with the pre-trained weights(darknet-19, 448 in imagenet, not coco) released here, and convert to caffe format with this repo.
I have tried many kinds of parameter setting but the best mAP that I can reach is less than 60%, which is much lower than 76%. I have sent you the model to you via your gmail, can you help inspect what is going wrong in my training procedure?

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

I'm not sure , but I don't have machine can try to training now , and below is my guess :

  1. Transform param in test.prototxt was
    scale: 0.007843
    mean_value: 127.5
    mean_value: 127.5
    mean_value: 127.5

    But in the train.prototxt was gone in your prototxt , and I suggest scale set to 1/255.5 and mean set to
    zero

  2. I try to convert darknet.cov23 to caffemodel yet , but count was dismatch, I didn't solve this problem ,
    and I can not ensure the caffemodel was correct

from mobilenet-yolo.

guantinglin avatar guantinglin commented on May 12, 2024

Hi,

Sorry to bother you again...

  1. I found that I sent you the wrong train.prototxt. It does have transform param settings in my experiments, actually. The darknet pre-processing scales the pixel value into [-1,+1], so I think it is right to set the transform param as:
    scale: 0.007843
    mean_value: 127.5
    mean_value: 127.5
    mean_value: 127.5

  2. I think the converted weights with this repo is correct for I have tried the converted weights for other architectures and it works.

Thank you

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

Ok , Maybe I'll need train this model and try to find the problems .
Thanks for your feedback

from mobilenet-yolo.

eric612 avatar eric612 commented on May 12, 2024

I update a new mode training from darknet19.conv , can only get 0.71

https://github.com/eric612/Caffe-YOLOv2-Windows/tree/master/models/darknet

from mobilenet-yolo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.