前提条件,Linux安装docker和docker-compose:
curl -fsSL https://get.docker.com | sh curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
安装并启动 Label Studio at http://IP:8080,存储数据在 ./mydata
目录下:
docker run --name labelstudio --restart always -d -p 8080:8080 -v $(pwd)/mydata:/label-studio/data heartexlabs/label-studio:latest
最新版本你会遇到权限报错“PermissionError: [Errno 13] Permission denied: ‘/label-studio/data/media’”
一种解决方法是使得挂载数据可写:
chmod -R 777 mydata/
再次启动,访问http://IP:8080即可
随便注册一下,即可登录