Skip to content

Commit

Permalink
[doc] Further work on doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrust committed Apr 26, 2017
1 parent efee776 commit 9e519f6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.mathjax']
extensions = ['sphinx.ext.mathjax', 'sphinx.ext.graphviz']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -87,7 +87,9 @@
if on_rtd:
html_theme = 'default'
else:
html_theme = 'nature'
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
40 changes: 37 additions & 3 deletions docs/datastruct_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ schema depends on the task.
Detection
~~~~~~~~~
CN24 supports detection using the `YOLO method <https://arxiv.org/abs/1506.02640>`_.
Samples need to specify an image file and bounding boxes.
Samples need to specify the following:

* **image_filename**: Input image file
* **boxes**: JSON array of bounding boxes

Bounding boxes have the following properties:

* **x**, **y**: Coordinates of the *center* of the bounding box
* **w**, **h**: Width and height of the bounding box
* **x**, **y**: Coordinates of the *center* of the bounding box (pixels)
* **w**, **h**: Width and height of the bounding box (pixels)
* **class**: Class of the object inside the bounding box

Optionally, you can specificy these:

* **difficult**: If set to 1, the box is ignored during testing
* **dont_scale**: Instead of pixels, the coordinates and dimensions
of the box are specified as normalized fractions of the image dimensions

The following is an
example from the PASCAL VOC dataset:

Expand All @@ -58,3 +68,27 @@ Classification

Binary Segmentation
~~~~~~~~~~~~~~~~~~~
Samples for binary segmentation consist of two image files
with equal dimensions. One is the actual input image and the
other the label image. At the moment, only binary segmentation
is supported. Grayscale label images are preferred. However,
CN24 will also accept RGB images as labels. In this case, the
value of the third channel will be used as a label.

The following properties need to be specified:

* **image_filename**: Input image file
* **label_filename**: Label file

Optionally, you can supply a value for **localized_error_function**.
Currently, the only supported values are *default* and *kitti*.

The following is an example from the KITTI-Vision Road Dataset:

.. code-block:: json
{
"label_filename": "gt_image_2/umm_road_000049.png",
"localized_error_function": "kitti",
"image_filename": "image_2/umm_000049.png"
}
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Welcome to CN24's documentation!
:caption: Contents:

intro
library
shell
datastruct

To get started,...

What is CN24?

What is it not?
2 changes: 2 additions & 0 deletions docs/library.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CN24 as a Library
=================
11 changes: 11 additions & 0 deletions docs/shell.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CN24 Shell
==========

Networks
........

Models
......

Datasets
........

0 comments on commit 9e519f6

Please sign in to comment.