Fixed YOLOv1 training.

This commit is contained in:
Alexey Kamenev 2018-01-18 13:50:47 -08:00
parent 80d9bec20f
commit 4c0382d423

View File

@ -260,9 +260,7 @@ void forward_detection_layer_gpu(const detection_layer l, network net)
return;
}
//float *in_cpu = calloc(l.batch*l.inputs, sizeof(float));
//float *truth_cpu = 0;
cuda_pull_array(net.input_gpu, net.input, l.batch*l.inputs);
forward_detection_layer(l, net);
cuda_push_array(l.output_gpu, l.output, l.batch*l.outputs);
cuda_push_array(l.delta_gpu, l.delta, l.batch*l.inputs);