probably stuff changed

This commit is contained in:
Joseph Redmon
2015-04-13 14:09:55 -07:00
parent 390a0cf923
commit b0106d7bde
11 changed files with 102 additions and 27 deletions

View File

@@ -61,7 +61,7 @@ convolutional_layer *make_convolutional_layer(int batch, int h, int w, int c, in
layer->biases = calloc(n, sizeof(float));
layer->bias_updates = calloc(n, sizeof(float));
float scale = 1./sqrt(size*size*c);
for(i = 0; i < c*n*size*size; ++i) layer->filters[i] = scale*rand_normal();
for(i = 0; i < c*n*size*size; ++i) layer->filters[i] = 2*scale*rand_uniform() - scale;
for(i = 0; i < n; ++i){
layer->biases[i] = scale;
}