• Stars
    star
    151
  • Rank 246,057 (Top 5 %)
  • Language
    Python
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

https://towardsdatascience.com/tutorial-build-an-object-detection-system-using-yolo-9a930513643a

DroneNet

DroneNet is Joseph Redmon's YOLO real-time object detection system retrained on 2664 images of DJI drones, labeled.
The original and labeled images used for retraining can be found under the image and label folders respectively.


Setting up

  1. Install the Ubuntu Linux distribution.

  2. Open terminal and enter the following lines to build Darknet:

git clone https://github.com/pjreddie/darknet.git
cd darknet
make

Note: if you are using another variant of Darknet (e.g AlexeyAB fork), the labels are in a different format. Original Yolo uses absolute coordinates to indicate the target box in the image, whereas AlexeyAB (and others) adopts relative coordinates. Depending on your version, the appropriate labels can be found in the directory labels (absolute coords) or normalized-labels (relative). Of course, images remain the same. |

  1. Move drone.data, drone.names, and yolo-drone.cfg under the cfg folder, create a weights directory and move yolo-drone.weights into the folder, move drone.jpg under the data folder, and move test.txt and train.txt in the root directory of your cloned darknet.

  2. Change lines 2 and 3 to your path in drone.data.


Running

Open terminal in the root directory of the darknet executable and enter:

./darknet detector test cfg/drone.data cfg/yolo-drone.cfg weights/yolo-drone.weights data/drone.jpg

Updates