Location>code7788 >text

Label Studio Data Labeling - Installation via Source Code

Popularity:471 ℃/2024-08-02 15:41:11

Label Studio is an online data annotation tool developed by Heartex, Inc. and is available in a community edition (open source) and an enterprise edition (a cloud service, for a fee), which offers enhanced security (single sign-on, role-based access control, SOC2), team management, analytics, and reporting, as well as uptime and support for service level agreements. Even the free open source version is sufficient to support a wide range of annotation types, including image classification, target detection, semantic segmentation, and more. It also supports a wide range of data types such as text, images, audio and video. It also supports integrated machine learning models for a variety of complex data annotation needs.

Installing Label Studio

Label Studio installation method has a variety of mainstream pip, conda installation, also supports docker installation, these installation methods, you can search the Internet to a lot, not to be introduced here. As a developer, more accustomed to installing through the source code, this article introduces how to clone the source code from github to install.

Download source code

  • git clone /HumanSignal/
    Since the git repository of label-studio has a huge number of files, it is easy to fail to download, we suggest using the following command to download
  • git clone /HumanSignal/ --depth 1

Installation of poetry

Poetry is a Python packaging and dependency management tool designed to simplify Python package creation, distribution, and dependency management. Poetry provides a unified and simplified tool and workflow compared to the traditional combination of setuptools, pip, and ...
cd label-studio
pip install poetry

After installation, execute the following command

  • poetry config list
cache-dir = "/Users/oheroj/Library/Caches/pypoetry"
-git-client = false
-workers = null
-installation = true
-binary = null
 = true
 = true
-wheel = true
 = true
-project = null
-copy = false
-pip = false
-setuptools = false
-site-packages = false
 = "{cache-dir}/virtualenvs"  # /Users/laijihua/Library/Caches/pypoetry/virtualenvs
-active-python = false
 = "{project_name}-py{python_version}"
 = true

included among these = trueChanging this to false stops poetry from automatically creating a behavior pattern if the virtual environment is not checked, but it is recommended not to change it.

(indicates contrast)-project = falseis the target we want to modify, using the command.

poetry config -project true

The virtual environment will be created in the project root directory, not in the cache directory.

Installation of dependencies

Execute the following command to install the dependencies:

poetry install

If the following error occurs

 - Installing label-studio-sdk (1.0.4 /HumanSignal/label-studio-sdk/archive/): Failed

  SSLCertVerificationError

  [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

then the following command is executed

poetry add label-studio-sdk@latest

After the dependency package is installed, execute the following command:

poetry run python label_studio/ migrate
poetry run python label_studio/ collectstatic

Starting services

poetry run python label_studio/ runserver