From 2fc5f6d46b089368d967b3e1ad6b2473b6dc970e Mon Sep 17 00:00:00 2001 From: Alexey <AlexeyAB@users.noreply.github.com> Date: Fri, 03 Feb 2017 20:40:10 +0000 Subject: [PATCH] Update Readme.md --- README.md | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f21c046..d339c22 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ 1. [How to use](#how-to-use) 2. [How to compile](#how-to-compile) 3. [How to train (Pascal VOC Data)](#how-to-train-pascal-voc-data) -4. [How to train (to detect your custom objects)](t#how-to-train-to-detect-your-custom-objects) +4. [How to train (to detect your custom objects)](#how-to-train-to-detect-your-custom-objects) 5. [How to mark bounded boxes of objects and create annotation files](#how-to-mark-bounded-boxes-of-objects-and-create-annotation-files) |  |  https://arxiv.org/abs/1612.08242 | @@ -173,7 +173,7 @@ 1. Create file `yolo-obj.cfg` with the same content as in `yolo-voc.cfg` (or copy `yolo-voc.cfg` to `yolo-obj.cfg)` and: * change line `classes=20` to your number of objects - * change line `filters=425` to `filters=(classes + 5)*5` (generally this depends on the `num` and `coords`, i.e. equal to `(classes + coords + 1)*num`) + * change line #224 from [`filters=125`](https://github.com/AlexeyAB/darknet/blob/master/cfg/yolo-voc.cfg#L224) to `filters=(classes + 5)*5` (generally this depends on the `num` and `coords`, i.e. equal to `(classes + coords + 1)*num`) For example, for 2 objects, your file `yolo-obj.cfg` should differ from `yolo-voc.cfg` in such lines: @@ -199,7 +199,7 @@ 4. Put image-files (.jpg) of your objects in the directory `build\darknet\x64\data\obj\` -5. Create `.txt`-file for each `.jpg`-image-file - with the same name, but with `.txt`-extension, and put to file: object number and object coordinates on this image, for each object in new line: `<object-class> <x> <y> <width> <height>` +5. Create `.txt`-file for each `.jpg`-image-file - in the same directory and with the same name, but with `.txt`-extension, and put to file: object number and object coordinates on this image, for each object in new line: `<object-class> <x> <y> <width> <height>` Where: * `<object-class>` - integer number of object from `0` to `(classes-1)` -- Gitblit v1.10.0