Skip to content

Commit

Permalink
restructured docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gereonreus committed May 9, 2022
1 parent 55c19ea commit 2fc5704
Show file tree
Hide file tree
Showing 19 changed files with 152 additions and 97 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For Annotators

Your Dashboard
==============
.. figure:: images/annotator-dashboard.*
.. figure:: ../images/annotator-dashboard.*

|fig-dashboard|: The annotator dashboard.

Expand Down Expand Up @@ -42,17 +42,17 @@ SIA consists of three main components.
These components are the canvas,
the image bar and the tool bar

.. figure:: images/sia-example.*
.. figure:: ../images/sia-example.*

|fig-sia|: An example of SIA.

.. figure:: images/sia-canvas.*
.. figure:: ../images/sia-canvas.*

|fig-sia-canvas|: An example of the SIA canvas component.
It presents the image to the annotator. By right click,
you can draw annotations on the image.

.. figure:: images/sia-image-bar.*
.. figure:: ../images/sia-image-bar.*

|fig-sia-image-bar|: The image bar component provides information
about the image. Beginning with the filename of the image and the
Expand All @@ -61,7 +61,7 @@ the image bar and the tool bar
images to annotate. The last information is the label that was given
to the whole image, if provided.

.. figure:: images/sia-toolbar.*
.. figure:: ../images/sia-toolbar.*

|fig-sia-tool-bar|: The toolbar provides a control to assign a label
to the whole image. The navigation between images. Buttons to select
Expand Down Expand Up @@ -105,15 +105,15 @@ Now the annotator moved on to the label input field and selected
Now the annotator needs to click on the **Submit** button to complete
this annotation step.

.. figure:: images/mia-example.*
.. figure:: ../images/mia-example.*

|fig-mia|: An example of MIA.

|fig-mia-controls1| shows the left part of the MIA control panel.
You can see the **label input field** and the current **selected label**
in a red box.

.. figure:: images/mia-controls1.*
.. figure:: ../images/mia-controls1.*

|fig-mia-controls1|: Left part of the MIA control panel.

Expand All @@ -132,7 +132,7 @@ Next to the **zoom buttons** there is a dropdown with name **amount**
here the annotator can select the maximum number of images that are
presented at the same time within the cluster view.

.. figure:: images/mia-controls2.*
.. figure:: ../images/mia-controls2.*

|fig-mia-controls2|: Right part of the MIA control panel.

Expand All @@ -143,7 +143,7 @@ In order to **zoom a single image** perform a **double click** on it.
To scale the image back to original size,
**double click** again.

.. figure:: images/mia-example-zoom.*
.. figure:: ../images/mia-example-zoom.*

|fig-mia-zoom|: Zoomed view of a specific image of the cluster.

Expand Down
82 changes: 14 additions & 68 deletions docs/sphinx/source/setup.rst → docs/sphinx/source/configuration/index.rst
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,58 +1,8 @@
.. _setup:
Configuration
*************

LOST Setup & Configuration
**************************

.. _quick-setup-standard:

Default Setup with Docker
==========================
LOST provides a `quick_setup <https://github.com/l3p-cv/lost/tree/master/docker/quick_setup>`_
script, that will configure LOST and instruct you how to start LOST.
We designed this script for Linux environments,
but it will also work on Windows host machines.

LOST releases are hosted on DockerHub and shipped in Containers. For a quick setup perform the following steps (these steps have been tested for Ubuntu):

1. Install docker on your machine or server:
https://docs.docker.com/install/
2. Install docker-compose:
https://docs.docker.com/compose/install/
3. Clone LOST:
.. code-block:: bash
git clone https://github.com/l3p-cv/lost.git
4. Install the *cryptography* package in your python environment:
.. code-block:: bash
pip install cryptography
5. Run quick_setup script:
.. code-block:: bash
cd lost/docker/quick_setup/
python3 quick_setup.py /path/to/install/lost --release 2.0.0
If you want to use phpmyadmin, you can set it via argument

.. code-block:: bash
python3 quick_setup.py /path/to/install/lost --release 2.0.0 --phpmyadmin
6. Run LOST:

Follow instructions of the quick_setup script,
printed in the command line.

.. note::

The quick setup script has now created the docker configuration files
``docker-compose.yml`` and ``.env`` . In the following sections,
additional desired configurations usually refer to these two files.


Activate E-Mail Notifications
-----------------------------
E-Mail Notifications
=============================
In order to activate E-Mail Notifications you have to provide an outgoing E-Mail Account.
In your ``.env`` file you have to add the following environment variables.
If you have set up lost with the quick setup script, these variables only need to be commented out and adjusted:
Expand All @@ -70,8 +20,8 @@ If you have set up lost with the quick setup script, these variables only need t
LOST_MAIL_LOST_URL=http://mylostinstance.url/
Configure LDAP
------------------
LDAP
====
LDAP can be configured using the following environment variables in your ``.env`` file:

.. code-block:: bash
Expand Down Expand Up @@ -113,8 +63,8 @@ It is important that all LDAP environment variables are prefixed with LOST so th
If a local user with the same user name of a new LDAP user already exists,
the local user settings will be overwritten by those of the LDAP user.

Activate JupyterLab
------------------------
JupyterLab
==========
The JupyterLab integration is primarily intended for pipeline developers and quick experiments in LOST.
Through this integration it is very easy to access all pipelines and their elements at any time and manipulate them through a web interface.
By accessing the LOST pyAPI, various operations can be investigated, as they are also executed in the scripts of the annotation pipelines.
Expand Down Expand Up @@ -154,8 +104,8 @@ Within the Admin Area, a tab (far right) now appears that contains the link to t
The JupyterLab integration should therefore only be used in development environments and in no case in production systems.


Git Configuration
---------------------
Git Access Token
================
With the help of the Git configuration, you can have your Git access data (Personal Access Token) stored in the container.
This means that, for example, private Git repositories can be used within the JupyterLab environment without having to enter a password.
Furthermore, the configuration of the Git settings is necessary so that private Git repositories can be imported via the GUI.
Expand All @@ -170,10 +120,10 @@ environment variables in your ``.env`` file:
LOST_GIT_ACCESS_TOKEN=https://mygitusername:mygitaccesstoken@github.com
Nginx Configuration
---------------------
===================

Configuration File
^^^^^^^^^^^^^^^^^^^^^^
------------------
When starting the lost container the corresponding nginx configuration file (depending on debug mode) for nginx is
copied from the repository into the folder

Expand All @@ -189,7 +139,7 @@ in our GitHub repository.


Custom Configuration File
^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------------------
If a custom configuration file is desired, this file must be mounted from the
host machine into the lost container.

Expand All @@ -201,8 +151,4 @@ host machine into the lost container.
.. note::
By default, files with a **maximum size of 1GB** can be uploaded in LOST.
To change the maximum size you have to change the value ``client_max_body_size 1024M;`` inside the nginx configuration file.
In addition, the environment variable ``LOST_MAX_FILE_UPLOAD_SIZE`` must also be adjusted in the LOST configuration.

Setup On Linux (without docker)
=====================================
#TODO: JG
In addition, the environment variable ``LOST_MAX_FILE_UPLOAD_SIZE`` must also be adjusted in the LOST configuration.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions docs/sphinx/source/developing_pipelines/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Developing Pipelines
****************

LOST Ecosystem
==============

Pipeline Projects
=================

All about Pipelines
===================

All about Scripts
=================

.. include:: pyapi.rst

Importing / Updating Pipelines
==============================

Import via GUI
--------------

LOST cli
--------
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
pyapi
*****
=====
#TODO JJ Review

script
================

Script
----------------
^^^^^^
.. autoclass:: lost.pyapi.script.Script
:members:
:inherited-members:
Expand Down
File renamed without changes.
File renamed without changes.
24 changes: 8 additions & 16 deletions docs/sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,14 @@ proposals that are presented to an annotator inside the annotation tool.
:maxdepth: 2
:caption: Contents:

Getting Started <getting_started.rst>
Setup <setup.rst>
LabelTrees <label_trees.rst>
Datasources <datasources.rst>
Admin Area <admin_area.rst>
For Annotators <annotators.rst>
Annotation Review <annotation_review.rst>
The LOST Ecosystem <lost_ecosystem.rst>
For Pipeline Designers <designers.rst>
ALL About Pipelines <all_about_pipelines.rst>
All About Scripts <all_about_scripts.rst>
Command Line Interface <lost_cli.rst>
Contribution Guide <contribution_guide.rst>
Conventions <conventions.rst>
Archive <archive.rst>
PyAPI <pyapi.rst>
Getting Started <getting_started/index.rst>
Managing Annotation Pipelines <managing_annotation_pipelines/index.rst>
Annotation <annotation/index.rst>
Admin Area <admin_area/index.rst>
Developing Pipelines <developing_pipelines/index.rst>
Configuration <configuration/index.rst>
Setup <setup/index.rst>
Contribution <contribution_guide.rst>

Indices and tables
==================
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions docs/sphinx/source/managing_annotation_pipelines/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Managing Annotation Pipelines
*****************************

Datasources
===========
#TODO Datasources


Label Trees
===========

Start Pipeline
==============

Choose Datasource
-----------------
#TODO

Configure AnnotationTask
------------------------

Configure Script arguments
--------------------------


Running Pipelines
=================

Instant Annotation Export
=========================

Review Annotations
==================

Designer Statistics
===================
File renamed without changes.
58 changes: 58 additions & 0 deletions docs/sphinx/source/setup/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.. _setup:

LOST Setup
**********

.. _quick-setup-standard:

Default Setup with Docker
==========================
LOST provides a `quick_setup <https://github.com/l3p-cv/lost/tree/master/docker/quick_setup>`_
script, that will configure LOST and instruct you how to start LOST.
We designed this script for Linux environments,
but it will also work on Windows host machines.

LOST releases are hosted on DockerHub and shipped in Containers. For a quick setup perform the following steps (these steps have been tested for Ubuntu):

1. Install docker on your machine or server:
https://docs.docker.com/install/
2. Install docker-compose:
https://docs.docker.com/compose/install/
3. Clone LOST:
.. code-block:: bash
git clone https://github.com/l3p-cv/lost.git
4. Install the *cryptography* package in your python environment:
.. code-block:: bash
pip install cryptography
5. Run quick_setup script:
.. code-block:: bash
cd lost/docker/quick_setup/
python3 quick_setup.py /path/to/install/lost --release 2.0.0
If you want to use phpmyadmin, you can set it via argument

.. code-block:: bash
python3 quick_setup.py /path/to/install/lost --release 2.0.0 --phpmyadmin
6. Run LOST:

Follow instructions of the quick_setup script,
printed in the command line.

.. note::

The quick setup script has now created the docker configuration files
``docker-compose.yml`` and ``.env`` . In the following sections,
additional desired configurations usually refer to these two files.




Setup On Linux (without docker)
=====================================
#TODO: JG

0 comments on commit 2fc5704

Please sign in to comment.