Skip to content

Commit

Permalink
fixed darknet, stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreddie committed Dec 8, 2015
1 parent c273883 commit 8929235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cfg/darknet.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ channels=3
momentum=0.9
decay=0.0005

learning_rate=0.1
policy=poly
power=4
max_batches=500000
learning_rate=0.01
policy=sigmoid
gamma=.00002
step=400000
max_batches=800000

[crop]
crop_height=224
Expand Down
6 changes: 6 additions & 0 deletions src/convolutional_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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_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);
axpy_ongpu(l.n, .05, l.mean_gpu, 1, l.rolling_mean_gpu, 1);
scal_ongpu(l.n, .95, l.rolling_variance_gpu, 1);
Expand Down

0 comments on commit 8929235

Please sign in to comment.