目录
- 一、概述
- 1.1 系统环境
- 1.2 Label Studio简介
- 二、安装过程
- 2.1 安装python
- 2.1.1 更新ubuntu库
- 2.1.2 安装python
- 2.2 安装虚拟环境
- 2.2.1 创建项目目录
- 2.2.2 创建虚拟环境
- 2.2.3 安装label studio开源版本
- 2.2.4 启动label studio
- 2.3 访问Label Studio
- 2.4 配置开机自启动
- 2.4.1 ubuntu中修改wsl配置启动systemd功能
- 2.4.2 ubuntu使用systemctl配置label studio自启动
- 创建服务文件
- 输入以下参数,根据自己的项目文件修改对应信息
- 启用并启动服务
魔夜听剑
诗号:魔夜丧月,听剑无声。
孤高傲世,目空一切的绝代剑客,虽对于人情世故有着超乎常态的冷淡,只对剑有着非比寻常的执着。虽对外人冷漠至极,但对自己的弟弟病弦不仅极为重视,更只会在其面前露出兄弟情谊、态度轻松的一面。过去古龙稀曾四次试图招揽其加入逆三教,魔夜听剑前三次皆拒绝,并以“天下宝剑何其多,不差这口”为理由回复,要逆三教断了招揽的念头。叹希奇曾以其对剑独特的见解,论剑完胜鬼刃夕痕、魔夜听剑,使两人深受剑封之苦。 为救弟弟夜魔琴而找上菠萝,得知目标已死后盛怒不已。
一、概述
1.1 系统环境
ubuntu框架:
zero@PC-LJM:~$uname-aLinux PC-LJM6.18.33.2-microsoft-standard-WSL2#1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux1.2 Label Studio简介
Label Studio 是一款开源的数据标注与AI评估平台,专门用来为AI模型准备高质量的训练数据和进行效果评估。它的核心优势在于极致的灵活性和广泛的数据类型支持,可以看作是一个连接原始数据与AI模型的强大“加工厂”和“质检站”。
支持全类型数据标注:无论是图像、文本、音频、视频,还是时间序列、PDF文档,Label Studio都能通过高度可配置的界面进行专业标注。例如:
计算机视觉:进行图像分类、目标检测(拉框)、语义分割(像素级)等。
自然语言处理(NLP):进行命名实体识别、情感分析、问答对标注等。
音频与语音:进行音频转录、情感识别、说话人分离,甚至支持声谱图分析。
大语言模型(LLM)评估:用于RLHF(人类反馈强化学习)、模型回答的对比评分、RAG(检索增强生成)效果评估等。
深度集成ML/AI流水线:它不仅仅是标注工具。你可以将机器学习模型接入Label Studio,让模型预先给出标注建议(预标注),人工只需审核和修正,能极大提升效率。同时,它也提供了API、Python SDK和Webhooks,方便嵌入到已有的开发流程中。
从标注到评估的一站式平台:近年来,Label Studio的定位已从单纯的标注工具扩展到了AI评估平台。你可以用它来:
创建评估基准:定义评估集和打分标准,对比不同模型版本的表现。
管理标注团队质量:通过测验、暂停规则和一致性追踪来评估标注员的工作质量。
分析项目数据:通过内置的“数据管理器”(Data Manager)进行高级筛选和数据洞察。
开源与免费:核心功能完全开源(Apache 2.0许可),可以免费自托管部署,社区非常活跃。
界面灵活可配置:你可以通过编写简单的XML配置文件,自由定制标注界面,适应几乎任何标注任务。
数据源与导出灵活:支持从本地文件、云存储(AWS S3, GCS等)导入数据,标注结果可导出为YOLO、COCO、JSONL等主流模型训练格式
二、安装过程
2.1 安装python
2.1.1 更新ubuntu库
zero@PC-LJM:~$sudoapt-getupdate[sudo]passwordforzero: Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease[126kB]Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease[126kB]Hit:4 https://developer.download.nvidia.cn/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease Hit:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages[1092kB]Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en[269kB]Get:8 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages[1660kB]Get:9 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages[1225kB]Get:10 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en[276kB]Fetched4774kBin5s(939kB/s)Reading package lists... Done2.1.2 安装python
zero@PC-LJM:~$sudoapt-getinstallpython3 python3-venv python3-pip-y安装完成后查看下python3的版本,label studio支持的版本为8-13的版本。
zero@PC-LJM:~$ python3--versionPython3.12.3# 符合软件要求2.2 安装虚拟环境
2.2.1 创建项目目录
在账户的home目录下直接创建对应的数据
zero@PC-LJM:~$cd~ zero@PC-LJM:~$mkdirlabel-studio-project zero@PC-LJM:~$ ll total44drwxr-x---5zero zero4096Jul1013:46 ./ drwxr-xr-x3root root4096Jul808:15../ -rw-------1zero zero4907Jul1011:31 .bash_history -rw-r--r--1zero zero220Jul808:15 .bash_logout -rw-r--r--1zero zero3895Jul817:57 .bashrc drwx------2zero zero4096Jul808:15 .cache/ -rw-rw-r--1zero zero0Jul1010:13 .motd_shown -rw-r--r--1zero zero807Jul808:15 .profile -rw-r--r--1zero zero0Jul808:50 .sudo_as_admin_successful -rw-r--r--1zero zero218Jul817:40 .wget-hsts drwxr-xr-x2zero zero4096Jul816:10 data/ drwxr-xr-x2zero zero4096Jul1013:46 label-studio-project/ zero@PC-LJM:~$2.2.2 创建虚拟环境
zero@PC-LJM:~/label-studio-project$ python3-mvenv label-studio-env zero@PC-LJM:~/label-studio-project$ ll total12drwxr-xr-x3zero zero4096Jul1014:41 ./ drwxr-x---5zero zero4096Jul1013:46../ drwxr-xr-x5zero zero4096Jul1014:41 label-studio-env/激活虚拟环境
zero@PC-LJM:~/label-studio-project$sourcelabel-studio-env/bin/activate# 前面这边做好表示已经切换到虚拟环境(label-studio-env)zero@PC-LJM:~/label-studio-project$2.2.3 安装label studio开源版本
# 加上-U参数获取最新版本(label-studio-env)zero@PC-LJM:~/label-studio-project$ pipinstall-Ulabel-studio Collecting label-studio Downloading label_studio-1.23.0-py3-none-any.whl.metadata(14kB)Collecting Django<5.2.0,>=5.1.8(from label-studio)Downloading django-5.1.15-py3-none-any.whl.metadata(4.1kB)# 。。。此处省略安装信息Successfully built attr drf-flex-fields drf-generators ordered-set django-ranged-fileresponse# ...(label-studio-env)zero@PC-LJM:~/label-studio-project$2.2.4 启动label studio
(label-studio-env)zero@PC-LJM:~/label-studio-project$ label-studio start=>Database and media directory: /home/zero/.local/share/label-studio=>Static URL issetto: /static/=>Database and media directory: /home/zero/.local/share/label-studio=>Static URL issetto: /static/ /home/zero/.local/share/label-studio/.env not found -ifyou're not configuring your environment separately, check this. get 'SECRET_KEY' casted as '<class'str'>' with default '' Warning: SECRET_KEY not foundinenvironment variables. Will generate a random key. Starting new HTTPS connection(1): pypi.org:443 https://pypi.org:443"GET /pypi/label-studio/json HTTP/1.1"20040454/home/zero/label-studio-project/label-studio-env/lib/python3.12/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To fix this warning, avoid executing queriesinAppConfig.ready()or when your app modules are imported. warnings.warn(self.APPS_NOT_READY_WARNING_MSG,category=RuntimeWarning)Initializing database..Normalized0/0 LocalFilesImportStorage paths Normalized0/0 LocalFilesExportStorage paths July10,2026- 06:59:54 Django version5.1.15, using settings'label_studio.core.settings.label_studio'# 这句,表示已经正常启动了Starting development server at http://0.0.0.0:8080/ Quit the server with CONTROL-C. gio: http://localhost:8080: Operation not supported2.3 访问Label Studio
WSL安装安装的可以通过浏览器直接访问http://localhost:8080即可访问label studio。
2.4 配置开机自启动
2.4.1 ubuntu中修改wsl配置启动systemd功能
(label-studio-env)zero@PC-LJM:~/label-studio-project$sudovim/etc/wsl.conf[sudo]passwordforzero:修改配置,将systemd参数改为true
[boot]systemd=true重启wsl
推出Ubuntu,在PowerShell中输入关机指令
wsl--shutdown关机后再次启动即可
2.4.2 ubuntu使用systemctl配置label studio自启动
创建服务文件
(label-studio-env)zero@PC-LJM:~/label-studio-project$sudovim/etc/systemd/system/label-studio.service输入以下参数,根据自己的项目文件修改对应信息
在这里插入代码片[Unit]Description=Label Studio ServiceAfter=network.target[Service]User=[你的用户名]Group=[你的用户名]# 这个目录以实际目录为准,即2.2.1创建的目录WorkingDirectory=/home/[你的用户名]/label-studio-project# 这个直接使用虚拟机目录下的label-studio来启动ExecStart=/home/[你的用户名]/label-studio-project/label-studio-env/bin/label-studio start--host0.0.0.0--port8080Restart=on-failureRestartSec=5[Install]WantedBy=multi-user.target启用并启动服务
重新加载 systemd 配置:
sudosystemctl daemon-reload设置服务开机自启:
sudosystemctlenablelabel-studio.service立即启动服务:
sudosystemctl start label-studio.service