mirror of https://github.com/AlexeyAB/darknet.git
fixed darknet, stuff
This commit is contained in:
parent
c2738835f0
commit
892923514f
|
@ -7,10 +7,11 @@ channels=3
|
||||||
momentum=0.9
|
momentum=0.9
|
||||||
decay=0.0005
|
decay=0.0005
|
||||||
|
|
||||||
learning_rate=0.1
|
learning_rate=0.01
|
||||||
policy=poly
|
policy=sigmoid
|
||||||
power=4
|
gamma=.00002
|
||||||
max_batches=500000
|
step=400000
|
||||||
|
max_batches=800000
|
||||||
|
|
||||||
[crop]
|
[crop]
|
||||||
crop_height=224
|
crop_height=224
|
||||||
|
|
|
@ -122,6 +122,12 @@ void forward_convolutional_layer_gpu(convolutional_layer l, network_state state)
|
||||||
fast_mean_gpu(l.output_gpu, l.batch, l.n, l.out_h*l.out_w, l.mean_gpu);
|
fast_mean_gpu(l.output_gpu, l.batch, l.n, l.out_h*l.out_w, l.mean_gpu);
|
||||||
fast_variance_gpu(l.output_gpu, l.mean_gpu, l.batch, l.n, l.out_h*l.out_w, l.variance_gpu);
|
fast_variance_gpu(l.output_gpu, l.mean_gpu, l.batch, l.n, l.out_h*l.out_w, l.variance_gpu);
|
||||||
|
|
||||||
|
/*
|
||||||
|
cuda_pull_array(l.variance_gpu, l.mean, 1);
|
||||||
|
printf("%f\n", l.mean[0]);
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
scal_ongpu(l.n, .95, l.rolling_mean_gpu, 1);
|
scal_ongpu(l.n, .95, l.rolling_mean_gpu, 1);
|
||||||
axpy_ongpu(l.n, .05, l.mean_gpu, 1, l.rolling_mean_gpu, 1);
|
axpy_ongpu(l.n, .05, l.mean_gpu, 1, l.rolling_mean_gpu, 1);
|
||||||
scal_ongpu(l.n, .95, l.rolling_variance_gpu, 1);
|
scal_ongpu(l.n, .95, l.rolling_variance_gpu, 1);
|
||||||
|
|
Loading…
Reference in New Issue