Skip to main content

Label-studio

pip install -U label-studio
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
envflagsdefault
LABEL_STUDIO_DATABASE-db,--databaselabel_studio.sqlite3
LABEL_STUDIO_BASE_DATA_DIR--data-dir
CONFIG_PATH-c,--configdefault_config.json
LABEL_STUDIO_LABEL_CONFIG-l,--label-configNone
LABEL_STUDIO_PORT-p,--port8080
LABEL_STUDIO_HOST--host
LABEL_STUDIO_PROJECT_DESC--initial-project-description
LABEL_STUDIO_PASSWORD--password
LABEL_STUDIO_USERNAME--usernamedefault_user@localhost
LABEL_STUDIO_USER_TOKEN--user-token
LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLEDFalse
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); \" />"
} -->

structs

interface Obj {
id: string;

data:any
value:any

from_name: string;
to_name: string;
type: string;
}

ML Backend

FAQ

video frameCount