Label Studio
约 2 分钟阅读
- HumanSignal/label-studioGitHubHumanSignal/label-studioHumanSignal/label-studio · Apache-2.0 · 数据库: SQLite, PostgreSQL · 存储: S3 · telementry · COLLECTANALYTICS · 参考 · https://labelstud.io/笔记:Label Studio
- Apache-2.0
- 数据库: SQLite, PostgreSQL
- 存储: S3
- telementry
- COLLECT_ANALYTICS
- 参考
- ~/Library/Application Support/label-studio
uv pip install -U label-studio
LOCAL_FILES_SERVING_ENABLED=true uv run label-studio
# https://hub.docker.com/r/heartexlabs/label-studio
# https://github.com/HumanSignal/label-studio/blob/develop/docker-compose.yml
docker run --rm -it \
-p 8080:8080 \
-v $PWD/data:/label-studio/data \
--name label-studio heartexlabs/label-studio
# label-studio --log-level DEBUG
LABEL_STUDIO_BASE_DATA_DIR=$PWD/data \
LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true \
LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=$PWD/files \
label-studio start依赖包label-studioPyPI 包label-studioPyPI
| env | flags | default |
|---|---|---|
| LABEL_STUDIO_DATABASE | -db,--database | label_studio.sqlite3 |
| LABEL_STUDIO_BASE_DATA_DIR | --data-dir | |
| CONFIG_PATH | -c,--config | default_config.json |
| LABEL_STUDIO_LABEL_CONFIG | -l,--label-config | None |
| LABEL_STUDIO_PORT | -p,--port | 8080 |
| LABEL_STUDIO_HOST | --host | |
| LABEL_STUDIO_PROJECT_DESC | --initial-project-description | |
| LABEL_STUDIO_PASSWORD | --password | |
| LABEL_STUDIO_USERNAME | --username | default_user@localhost |
| LABEL_STUDIO_USER_TOKEN | --user-token | |
| LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED | False | |
| LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT | / |
tags
<View>
<TimeSeriesLabels name="label" toName="ts">
<Label value="Run"/>
<Label value="Walk"/>
</TimeSeriesLabels>
<HyperText name="video" value="$video" inline="true"/>
<TimeSeries name="ts" value="$csv" valueType="url" timeColumn="time_column">
<Channel column="first_column"/>
</TimeSeries>
</View>
<!-- {
"csv": "/samples/time-series.csv?time=time_column&values=first_column",
"video": "<video src='/static/samples/opossum_snow.mp4' width='100%' controls onloadeddata=\"setTimeout(function(){ts=Htx.annotationStore.selected.names.get('ts');t=ts.data.time_column;v=document.getElementsByTagName('video')[0];w=parseInt(t.length*(5/v.duration));l=t.length-w;ts.updateTR([t[0], t[w]], 1.001);r=$=>
ts.brushRange.map(n=>(+n).toFixed(2));_=r();setInterval($=>r().some((n,i)=>n!==_[i])&&(_=r())&&(v.currentTime=v.duration*(r()[0]-t[0])/(t.slice(-1)[0]-t[0]-(r()[1]-r()[0]))),300); console.log('video is loaded, starting to sync with time series')}, 3000); \" />"
} -->- Video+TimeSerias
- labelstud.io/tags
- google-research-datasets/Video-Timeline-Tags-ViTTGitHubgoogle-research-datasets/Video-Timeline-Tags-ViTT
structs
interface Obj {
id: string;
data: any;
value: any;
from_name: string;
to_name: string;
type: string;
}- Label Studio Common Format
ML Backend
- HumanSignal/label-studio-ml-backendGitHubHumanSignal/label-studio-ml-backend
- seblful/label-studio-yolov8-backendGitHubseblful/label-studio-yolov8-backend
Template
- data 是静态的、被观察的对象
- annotations 是动态的、被创建的结果
- value 绑定 data
- 控制标签创建 annotations
<Text name='text' value='$prediction' />- name 是内部名字
- value
Storage
/project-folder/
├── images/
│ ├── image1.jpg
│ ├── image2.png
│ └── subfolder/
│ └── image3.gif
└── my_tasks.json- Treat every bucket object as a source file
- 本地存储
LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true- LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT
- 限定访问目录
/data/local-files?d=ds/images/1.jpg- 实际相当于访问
http://localhost:8080/data/local-files?d=ds/images/1.jpg
- 实际相当于访问
- 上传存储
/data/upload/$PROJECT_ID/
- labelstud.io/guide/storage.html
FAQ
- OCR 指标
- 字符错误率 (CER)
- 词错误率 (WER)
video frameCount
- framerate 默认 24
- HumanSignal/label-studio#3315GitHub IssueHumanSignal/label-studio#3315
- labelstud.io/tags/video
关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- LabelImg笔记 · Label Studio
HumanSignal/labelImg · MIT, Python · -> Label Studio
- ML Awesome笔记 · Label Studio
LLM · LLM Awesome · Diffusion · Diffusion Awesome · NLP · NLP Awesome · GAN · img2img · Framework · PyTorch · by Meta · tinygrad/tinygrad
参考资料
GitHub7 条
- google-research-datasets/Video-Timeline-Tags-ViTTgithub.com/google-research-datasets/Video-Timeline-Tags-ViTT
- HumanSignal/label-studiogithub.com/HumanSignal/label-studio
- HumanSignal/label-studio-ml-backendgithub.com/HumanSignal/label-studio-ml-backend
- HumanSignal/label-studio/web/libs/editorgithub.com/HumanSignal/label-studio/tree/develop/web/libs/editor
- HumanSignal/label-studio#3315github.com/HumanSignal/label-studio/issues/3315
- HumanSignal/label-studio#4827github.com/HumanSignal/label-studio/issues/4827
- seblful/label-studio-yolov8-backendgithub.com/seblful/label-studio-yolov8-backend
其他外链4 条
- labelstud.io/tagslabelstud.io/tags
- labelstud.iolabelstud.io/
- labelstud.io/guide/storage.htmllabelstud.io/guide/storage.html
- labelstud.io/tags/videolabelstud.io/tags/video