This is an automated email from the ASF dual-hosted git repository. jxie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new e242fd2 fix doc (#7780) e242fd2 is described below commit e242fd231e667c9d9b0c0fa439afb0c2f2cdcf81 Author: Joshua Z. Zhang <cheungc...@gmail.com> AuthorDate: Wed Sep 6 15:18:22 2017 -0700 fix doc (#7780) --- docs/api/python/image.md | 12 ++++++------ src/operator/contrib/multibox_target-inl.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api/python/image.md b/docs/api/python/image.md index 23b5ee3..766a724 100644 --- a/docs/api/python/image.md +++ b/docs/api/python/image.md @@ -116,17 +116,17 @@ index_1 label_1 image_path_1 Where `label_N` is a number a of fixed-width vector. The format of label used in object detection is a variable length vector ``` -A B [header] [(object0), (object1), ... (objectN)] +A B [extra header] [(object0), (object1), ... (objectN)] ``` -Where A is the width of header, B is the width of each object. -Header is optional and used for inserting helper information such as (width, height). +Where A is the width of header (2 + length of extra header), B is the width of each object. +Extra header is optional and used for inserting helper information such as (width, height). Each object is usually 5 or 6 numbers describing the object properties, for example: [id, xmin, ymin, xmax, ymax, difficulty] Putting all together, we have a `lst` file for object detection: ``` -0 2 5 640 480 1 0.1 0.2 0.8 0.9 2 0.5 0.3 0.6 0.8 data/xxx.jpg -1 2 5 480 640 3 0.05 0.16 0.75 0.9 data/xxx.jpg -2 2 5 500 600 2 0.6 0.1 0.7 0.5 0 0.1 0.3 0.2 0.4 3 0.25 0.25 0.3 0.3 data/xxx.jpg +0 4 5 640 480 1 0.1 0.2 0.8 0.9 2 0.5 0.3 0.6 0.8 data/xxx.jpg +1 4 5 480 640 3 0.05 0.16 0.75 0.9 data/yyy.jpg +2 4 5 500 600 2 0.6 0.1 0.7 0.5 0 0.1 0.3 0.2 0.4 3 0.25 0.25 0.3 0.3 data/zzz.jpg ... ``` diff --git a/src/operator/contrib/multibox_target-inl.h b/src/operator/contrib/multibox_target-inl.h index f76df35..872ddde 100644 --- a/src/operator/contrib/multibox_target-inl.h +++ b/src/operator/contrib/multibox_target-inl.h @@ -65,7 +65,7 @@ struct MultiBoxTargetParam : public dmlc::Parameter<MultiBoxTargetParam> { nnvm::Tuple<float> variances; DMLC_DECLARE_PARAMETER(MultiBoxTargetParam) { DMLC_DECLARE_FIELD(overlap_threshold).set_default(0.5f) - .describe("Anchor-GT overlap threshold to be regarded as a possitive match."); + .describe("Anchor-GT overlap threshold to be regarded as a positive match."); DMLC_DECLARE_FIELD(ignore_label).set_default(-1.0f) .describe("Label for ignored anchors."); DMLC_DECLARE_FIELD(negative_mining_ratio).set_default(-1.0f) -- To stop receiving notification emails like this one, please contact ['"comm...@mxnet.apache.org" <comm...@mxnet.apache.org>'].