# Try Darknet Training (1) with Default Darknet images ###### tags: `2022/06` `darknet sample image set` `training` > <ins>(2022/6/) This section, we will try Darknet training based on default Darknet image set. Next section will do my own customized image set.</ins> > ## :memo: Dependency Darknet requires OpenCV, so install the package first. ``` $ sudo apt install libopencv-dev ``` ## :memo: Installation ``` $ git clone https://github.com/AlexeyAB/darknet $ cd darknet # Change the setting to enable GPU $ sed -i "s/GPU=0/GPU=1/g" Makefile $ sed -i "s/CUDNN_HALF=0/CUDNN_HALF=1/g" Makefile $ sed -i "s/CUDNN=0/CUDNN=1/g" Makefile $ sed -i "s/OPENCV=0/OPENCV=1/g" Makefile $ make ``` [:arrow_left:Previous article - Darknet Inference:arrow_left:](https://hackmd.io/@MarconiJiang/darknet_inference) [:arrow_up:back to marconi's blog:arrow_up:](https://marconi1964.github.io/) [:arrow_right:Next article - Darknet Training(2):arrow_right:](https://hackmd.io/@MarconiJiang/darknet_training_customized_image_set)