label-studio 是一个支持多格式的数据标注工具,以下是基于docker-compose 运行的试用
环境准备
- docker-compose
version: "3.9"
services:
nginx:
image: heartexlabs/label-studio:latest
ports:
- "8080:8085"
- "8081:8086"
depends_on:
- app
environment:
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
volumes:
- ./mydata:/label-studio/data:rw
- ./deploy/nginx/certs:/certs:ro
# - ./deploy/my.conf:/etc/nginx/nginx.conf
command: nginx
app:
stdin_open: true
tty: true
image: heartexlabs/label-studio:latest
expose:
- "8000"
depends_on:
- db
environment:
- DJANGO_DB=default
- POSTGRE_NAME=postgres
- POSTGRE_USER=postgres
- POSTGRE_PASSWORD=dalong
- POSTGRE_PORT=5432
- POSTGRE_HOST=db
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
- JSON_LOG=1
volumes:
- ./mydata:/label-studio/data:rw
command: label-studio-uwsgi
minio:
image: minio/minio
ports:
- "9000:9000"
- "19001:19001"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server --console-address :19001 --quiet /data
db:
image: postgres:16
hostname: db
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=dalong
volumes:
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/data
- ./deploy/pgsql/certs:/var/lib/postgresql/certs:ro
启动&试用
- 启动
docker-compose up -d
- 效果
登陆地址
http://localhost:8080/projects/ 首次可以自己注册账户 - 创建项目以及试用
默认登陆进入之后会有提示创建项目的按钮 - 配置
- 上传文件
- 数据标记
说明
label-studio 包含了社区版以及企业版,基本我们试用社区版就够用了,对于实际处理数据可以直接基于对象存储,会方便不少
参考架构
参考资料
https://github.com/HumanSignal/label-studio
https://labelstud.io/
https://labelstud.io/guide/get_started.html#Quick-start