Hello gil,
Yolov2 training process can be accelerated by using GPUs.
[detector,info] = trainYOLOv2ObjectDetector(trainingData,lgraph,options);
To access the GPUs, you can set the “options” in the trainYOLOv2ObjectDetector function, by referring the ExecutionEnvironment in the trainingOptions function.
Once the detector is trained and evaluated, then you can generate code for the yolov2ObjectDetector using GPU Coder™. For more information related to Code generation using GPU Coder™, you can refer the following: