We package all the layout annotation service (the annotation interface and active learning modeling server) inside docker containers. The installation process is very straightforward and simple:
- Install Docker on your computer, following the official instructions.
- Clone this repository to your computer.
git clone git@github.com:Layout-Parser/annotation-service.git cd annotation-service
- Configure the annotation folders (see details in the section below) and start the docker container
DATA=./data CONFIG=labeling-config.xml MODEL=model.py docker-compose up --build -d
- Go to localhost:8080 and start annotating.
- Export the completed annotations via Label-Studio's export function, or you can find the annotation folder directly at
labeled
.
In the 3rd command, the environmental variables DATA
, CONFIG
, and MODEL
are used to set the labeling data directory, Label Studio configuration file, and ML backend model file, respectively.
DATA
is for the folder containing all the images for labeling. By default,DATA=./data
.CONFIG
is the configuration file for initializing the label-studio interface. The default value isCONFIG=horizontal-layout.xml
, and you could find more examples inlabeling/configs
.MODEL
is for the script that generates the model prediction. The default value isMODEL=model.py
.
- Enable the Active Learning Detectron2 model backend.