Skip to content

Commit

Permalink
Change API docs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
alankbi committed Jan 21, 2020
1 parent 4968ffa commit bcb3336
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 29 deletions.
2 changes: 1 addition & 1 deletion detecto/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def xml_to_csv(xml_folder, output_file):
XML file should correspond to an image and contain the image name, image
size, and the names and bounding boxes of the objects in the image,
if any. Extraneous data in the XML files will simply be ignored.
See :download:`here <_static/example.xml>` for an example XML file.
See :download:`here <../_static/example.xml>` for an example XML file.
For an image labeling tool that produces XML files in this format,
see `LabelImg <https://github.com/tzutalin/labelImg>`_.
Expand Down
27 changes: 0 additions & 27 deletions docs/api.rst

This file was deleted.

12 changes: 12 additions & 0 deletions docs/api/core.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _core:

detecto.core
============

.. automodule:: detecto.core
:members:
:special-members:

.. autoclass:: detecto.core.Model
:members:
:special-members: __init__
36 changes: 36 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.. _index:

API Documentation
=================

Click below for documentation specific to each module:

.. toctree::
:maxdepth: 1

core
utils
visualize


Core
----

The :ref:`core` module contains the central classes of the package: Dataset,
DataLoader, and Model. These are used to read in a labeled dataset and train
a functioning object detection model.


Utils
-----

The :ref:`utils` module contains a variety of useful helper functions. With
it, you can read in images, convert XML files into CSV files, apply standard
transforms to images, and more.


Visualize
---------

The :ref:`visualize` module is used to display labeled images, plot
predictions, and run object detection on videos.
7 changes: 7 additions & 0 deletions docs/api/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _utils:

detecto.utils
=============

.. automodule:: detecto.utils
:members:
7 changes: 7 additions & 0 deletions docs/api/visualize.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _visualize:

detecto.visualize
=================

.. automodule:: detecto.visualize
:members:
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ API Documentation
=================

.. toctree::
:titlesonly:
:maxdepth: 2

api
api/index


Indices and tables
Expand Down

0 comments on commit bcb3336

Please sign in to comment.