Darknet: Training Steps

Created on 30 Mar 2018  路  5Comments  路  Source: AlexeyAB/darknet

Hi Alexey,

In yolov3_voc.cfg, the steps = 40000,45000. However, I still get a lot of weights files in backup directory...

Best

Hongnian

question

Most helpful comment

steps control when learning_rate will be changed according to policy and scales.

For these params in cfg-file:

learning_rate=0.001
burn_in=1000
max_batches = 50200
policy=steps
steps=40000,45000
scales=.1,.1

All 5 comments

This is normal. Sometimes you want to stop training and continue it later. So you can start from the last weights-file.
darknet.exe detector train data/voc.data cfg/yolov3-voc.cfg /backup/yolov3-voc_1000.weights

What does steps do in yolov3_voc.cfg then? I thought it is a way to control the number of weights files that it generates.

steps control when learning_rate will be changed according to policy and scales.

For these params in cfg-file:

learning_rate=0.001
burn_in=1000
max_batches = 50200
policy=steps
steps=40000,45000
scales=.1,.1

Thanks. That is very helpful.

steps control when learning_rate will be changed according to policy and scales.

For these params in cfg-file:

learning_rate=0.001
burn_in=1000
max_batches = 50200
policy=steps
steps=40000,45000
scales=.1,.1

Is any particular reason why the first 1000 iterations learning rate is so small?

In addition, I noticed if steps and scales ared used in cfg, cfg will read a float array for two steps and scales, instead of scale and step. And scale and step is not initialised, so I assumed they will be 0?

But in upsample computation (blas.c), scale is used for computing out and in for the forward and backward, respectively.

                    if (forward) out[out_index] = scale*in[in_index];
                    else in[in_index] += scale*out[out_index];

I wonder would the scale be 0 and this upsample always 0 if used steps and scales?

I am not sure am I understood correctly. hope you can help. Thanks!
@AlexeyAB

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hemp110 picture hemp110  路  3Comments

Cipusha picture Cipusha  路  3Comments

off99555 picture off99555  路  3Comments

HilmiK picture HilmiK  路  3Comments

bit-scientist picture bit-scientist  路  3Comments