caffe icon indicating copy to clipboard operation
caffe copied to clipboard

No learning progress when learning on my dataset

Open mafiosso opened this issue 12 years ago • 5 comments

When trying on my NV GT 650 1GB learn my relatively small dataset (76 images per class) (i have 5 classes) nothing get learned. I waited 200000 iteration without any effect. I have a little bit modified solver from imagenet example. These are my configuration files.

http://pastebin.com/vxb1S43X http://pastebin.com/SWURRWUF http://pastebin.com/X1fMy5m6 http://pastebin.com/BB7yauVJ

I was wondering how is it possible, when trying to classify something by my "learned" net . The net everytime returns the same output. The output probability function is exactly the same everytime. Loss is near 1.6 everytime when learning and testing is about 21% accuracy and no progress is there. When trying to go up with batch size, the program doesn't fit to my GPU memory. What am I doing wrong or is it a bug? When building my dataset I used tools convert_imageset.bin and compute_image_mean.bin. Everything is cropped and resized to proper size.

mafiosso avatar Jul 10 '14 08:07 mafiosso

Try a smaller base_lr

On Thursday, July 10, 2014, mafiosso [email protected] wrote:

When trying on my NV GT 650 1GB learn my relatively small dataset (76 images per class) (i have 5 classes) nothing get learned. I waited 200000 iteration without any effect. I have a little bit modified solver from imagenet example. These are my configuration files.

http://pastebin.com/vxb1S43X http://pastebin.com/SWURRWUF http://pastebin.com/X1fMy5m6 http://pastebin.com/BB7yauVJ

I was wondering how is it possible, when trying to classify something by my "learned" net . The net everytime returns the same output. The output probability function is exactly the same everytime. Loss is near 1.6 everytime when learning and testing is about 21% accuracy and no progress is there. When trying to go up with batch size, the program doesn't fit to my GPU memory. What am I doing wrong or is it a bug? When building my dataset I used tools convert_imageset.bin and compute_image_mean.bin. Everything is cropped and resized to proper size.

— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/664.

Sergio

sguada avatar Jul 10 '14 11:07 sguada

Thanks a lot I have found this article http://arxiv.org/pdf/1404.5997v1.pdf, I have an idea it would be recalculated somehow automatic for devices with low memory in future.

mafiosso avatar Jul 10 '14 12:07 mafiosso

Hi, @mafiosso, could you please tell you how to solve this problem? I also met with this kind of problem. Thanks

Cheng-Wang avatar Aug 11 '14 13:08 Cheng-Wang

Hi yes I can:). It's pretty easy. Look on page 5, right column. There is formula to recalculate this on the page. For my batch_size = 16 i have this:

test_iter: 1000 test_interval: 1000 base_lr: 0.00125 lr_policy: "step" gamma: 0.1 stepsize: 800000 display: 20 max_iter: 2800000 momentum: 0.9 weight_decay: 0.000176777

It is working well on my GTX 650 1GB DDR5.

mafiosso avatar Aug 11 '14 16:08 mafiosso

thank you very much, @mafiosso , I will try according to your suggestion and the paper.

Cheng-Wang avatar Aug 13 '14 06:08 Cheng-Wang