mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed YOLOv1 training.
This commit is contained in:
parent
80d9bec20f
commit
4c0382d423
@ -260,9 +260,7 @@ void forward_detection_layer_gpu(const detection_layer l, network net)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//float *in_cpu = calloc(l.batch*l.inputs, sizeof(float));
|
cuda_pull_array(net.input_gpu, net.input, l.batch*l.inputs);
|
||||||
//float *truth_cpu = 0;
|
|
||||||
|
|
||||||
forward_detection_layer(l, net);
|
forward_detection_layer(l, net);
|
||||||
cuda_push_array(l.output_gpu, l.output, l.batch*l.outputs);
|
cuda_push_array(l.output_gpu, l.output, l.batch*l.outputs);
|
||||||
cuda_push_array(l.delta_gpu, l.delta, l.batch*l.inputs);
|
cuda_push_array(l.delta_gpu, l.delta, l.batch*l.inputs);
|
||||||
|
Loading…
Reference in New Issue
Block a user