mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
adding new tiny-yolo
This commit is contained in:
@ -187,7 +187,7 @@ void denormalize_connected_layer(layer l)
|
||||
{
|
||||
int i, j;
|
||||
for(i = 0; i < l.outputs; ++i){
|
||||
float scale = l.scales[i]/sqrt(l.rolling_variance[i] + .00001);
|
||||
float scale = l.scales[i]/sqrt(l.rolling_variance[i] + .000001);
|
||||
for(j = 0; j < l.inputs; ++j){
|
||||
l.weights[i*l.inputs + j] *= scale;
|
||||
}
|
||||
@ -198,6 +198,23 @@ void denormalize_connected_layer(layer l)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void statistics_connected_layer(layer l)
|
||||
{
|
||||
if(l.batch_normalize){
|
||||
printf("Scales ");
|
||||
print_statistics(l.scales, l.outputs);
|
||||
printf("Rolling Mean ");
|
||||
print_statistics(l.rolling_mean, l.outputs);
|
||||
printf("Rolling Variance ");
|
||||
print_statistics(l.rolling_variance, l.outputs);
|
||||
}
|
||||
printf("Biases ");
|
||||
print_statistics(l.biases, l.outputs);
|
||||
printf("Weights ");
|
||||
print_statistics(l.weights, l.outputs);
|
||||
}
|
||||
|
||||
#ifdef GPU
|
||||
|
||||
void pull_connected_layer(connected_layer l)
|
||||
|
Reference in New Issue
Block a user