eric612 / MobileNet-YOLO

A caffe implementation of MobileNet-YOLO detection network
Other
865 stars 442 forks source link

my dataset is mixed with color and grayscale image #18

Open shuxiao9058 opened 6 years ago

shuxiao9058 commented 6 years ago

How to work with the mobile-yolo model?convert all the image to grayscale and then process with the model?

eric612 commented 6 years ago

@shuxiao9058 , You can try force_color: true For example : https://github.com/eric612/MobileNet-YOLO/blob/master/models/yolov3_coco/mobilenet_yolov3_lite_train.prototxt

shuxiao9058 commented 6 years ago

but the most dataset is grayscale,and the rgb channels are equal,the training result not well now.

I think convert all images to gray,and train with gray is best.

eric612 commented 6 years ago

If the most images are grayscale , you can try to turn off image distortion , like hue,saturation , these data augmentation may confuse training

shuxiao9058 commented 6 years ago

and also train with force color?

shuxiao9058 commented 6 years ago

can i train with sigle channel(grayscale image),and maybe the training is faster.

eric612 commented 6 years ago

Yes , I think it can get best performance between speed and accuracy as the few color images not much help training

shuxiao9058 commented 6 years ago

yes,i will try.thanks for your reply.

shuxiao9058 commented 6 years ago

another question, how to modify the model you provide to use grayscale for training?

does caffe has the force_gray param?

eric612 commented 6 years ago

Sorry , I have not tried this way , you can try search same requirement as ssd caffe.